Permalink
Browse files

Update NSString+TKCategory.m

Fixed implicit type cast between NSRegularExpressionOptions and NSStringCompareOptions.
  • Loading branch information...
1 parent 380adc9 commit 40682f59ba1446338cf313d4a98a795db9137dbe @wibobm wibobm committed Jan 14, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/TapkuLibrary/NSString+TKCategory.m
View
3 src/TapkuLibrary/NSString+TKCategory.m
@@ -200,8 +200,7 @@ - (NSString*) formattedPhoneNumberWithLastCharacterRemoved:(BOOL)deleteLastChar{
if((digits.length > 11 && leadingOne) || (digits.length > 10 && !leadingOne))
return digits;
-
- NSRegularExpressionOptions opt = NSRegularExpressionSearch;
+ NSStringCompareOptions opt = NSRegularExpressionSearch;
NSRange range = NSMakeRange(0, digits.length);
NSString *occurence, *replace;

0 comments on commit 40682f5

Please sign in to comment.