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

Commit0d977c6

Browse files
committed
Merge pull request#13 from fabb/master
replace disallowed characters '@' and '-' in method names
2 parentsfcd42e9 +04b8896 commit0d977c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Shared/CGUCodeGenTool.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ - (NSString *)methodNameForKey:(NSString *)key;
174174
}
175175
[mutableKeyreplaceOccurrencesOfString:@""withString:@""options:0range:NSMakeRange(0, mutableKey.length)];
176176
[mutableKeyreplaceOccurrencesOfString:@"~"withString:@""options:0range:NSMakeRange(0, mutableKey.length)];
177+
[mutableKeyreplaceOccurrencesOfString:@"@"withString:@""options:0range:NSMakeRange(0, mutableKey.length)];
178+
[mutableKeyreplaceOccurrencesOfString:@"-"withString:@"_"options:0range:NSMakeRange(0, mutableKey.length)];
177179
return [mutableKeycopy];
178180
}
179181

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp