Skip to content

The function updateAttributedString() doesn't check for escaped endMarker #7

@simonward

Description

@simonward

In the function updateAttributedString():

endRange = [scanString rangeOfString:endMarker options:options range:remainingRange];

It doesn't check for an escaped endMarker:

if (hasCharacterRelative(scanString, endRange, -1, escapeCharacter)) { continueScan = YES; //scanEndIndex = endRange.location + endRange.length; scanEndIndex = endRange.location + 1; }

Therefore, it will fail to properly parse:
[\(\)](http://apple.com)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions