Skip to content

NSRangeExceptions with en_US on some(?) apostrophes #2

Description

CODE REGION:

      if (loc < wordLength) {
            [result appendString:
             [token substringWithRange:NSMakeRange(loc, wordLength - loc)]];
        }

SAMPLES:

[61344:207] going to append token "hadn’t" with loc 3 and len 5

[61363:207] going to append token "we’ve" with loc 0 and len 7

[61377:207] going to append token "Let’s" with loc 0 and len 7

[61394:207] going to append token "They’re" with loc 0 and len 9

Previous commit does not have this problem.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions