Skip to content

Commit 228b840

Browse files
authored
Merge pull request fortinmike#50 from Bynil/regex_fix
Update regex for method
2 parents e22d457 + a4950e9 commit 228b840

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

XcodeBoost/NSString+XcodeBoost.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ @implementation NSString (XcodeBoost)
4646

4747
#pragma mark Complex Patterns
4848

49-
// Unescaped: ([-\+] ?[a-zA-Z0-9 \(\)_,\*^:\n\s]+)\{(?:.*\n)+?(?:\n?)\}
50-
static NSString *s_methodPattern = @"([-\\+] ?[a-zA-Z0-9 \\(\\)_\\*^:\\n\\s]+)\\{(?:.*\\n)+?(?:\\n?)\\}";
49+
// Unescaped: ([-\+] ?[a-zA-Z0-9 \(\)_,\*^:\n\s\<\>]+)\{(?:.*\n)+?(?:\n?)\}
50+
static NSString *s_methodPattern = @"([-\\+] ?[a-zA-Z0-9 \\(\\)_,\\*^:\\n\\s\\<\\>]+)\\{(?:.*\\n)+?(?:\\n?)\\}";
5151

5252
// Unescaped: ([a-zA-Z0-9\(\)_,\*^: ]+?[a-zA-Z0-9_]+?\(.*?\))[\s\n]*?\{(?:.*\n)+?(?:\n?)\}
5353
static NSString *s_functionPattern = @"([a-zA-Z0-9\\(\\)_,\\*^: ]+?[a-zA-Z0-9_]+?\\(.*?\\))[\\s\\n]*?\\{(?:.*\\n)+?(?:\\n?)\\}";
@@ -314,4 +314,4 @@ - (NSString *)xb_escapeForRegex
314314

315315
}
316316

317-
@end
317+
@end

0 commit comments

Comments
 (0)