Skip to content

Commit

Permalink
Merge calls to addCharactersInString:
Browse files Browse the repository at this point in the history
  • Loading branch information
neonichu committed Dec 25, 2015
1 parent f00a45f commit 3a4a31c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/MMHTMLParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ - (MMElement *)_parseLenientBlockTagWithScanner:(MMScanner *)scanner
- (NSRange)_parseNameWithScanner:(MMScanner *)scanner
{
NSMutableCharacterSet *nameSet = [NSMutableCharacterSet alphanumericCharacterSet];
[nameSet addCharactersInString:@":"];
[nameSet addCharactersInString:@"-"];
[nameSet addCharactersInString:@":-"];

NSRange result = NSMakeRange(scanner.location, 0);
result.length = [scanner skipCharactersFromSet:nameSet];
Expand Down

0 comments on commit 3a4a31c

Please sign in to comment.