Skip to content

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

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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