Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit228b840

Browse files
authored
Merge pull request#50 from Bynil/regex_fix
Update regex for method
2 parentse22d457 +a4950e9 commit228b840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎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-
staticNSString *s_methodPattern =@"([-\\+] ?[a-zA-Z0-9\\(\\)_\\*^:\\n\\s]+)\\{(?:.*\\n)+?(?:\\n?)\\}";
49+
// Unescaped: ([-\+] ?[a-zA-Z0-9 \(\)_,\*^:\n\s\<\>]+)\{(?:.*\n)+?(?:\n?)\}
50+
staticNSString *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
staticNSString *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)

[8]ページ先頭

©2009-2025 Movatter.jp