Skip to content

Bug in previous_char() function when handling surrogates during inline parsing of emphasis #299

@olivr70

Description

@olivr70

Probable bug in previous_char() function

        if ((two_previous_cc & 0xfc00) !== 0xd800) {
            return previous_char;
        }

as previous_char is the name of the function itself, and in other alternatives the function returns a string, it is unexpected to have the function return itself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions