1 parent c954472 commit 7b1f592Copy full SHA for 7b1f592
1 file changed
ios/utils/StringExtension.mm
@@ -39,13 +39,12 @@ + (NSDictionary *)getEscapedCharactersInfoFrom:(NSString *)text {
39
40
while(searchRange.location < text.length) {
41
foundRange = [text rangeOfString:key options:0 range:searchRange];
42
- if(foundRange.location != NSNotFound) {
43
- results[@(foundRange.location)] = @[key, unescapeMap[key]];
44
- searchRange.location = foundRange.location + foundRange.length;
45
- searchRange.length = text.length - searchRange.location;
46
- } else {
+ if(foundRange.location == NSNotFound) {
47
break;
48
}
+ results[@(foundRange.location)] = @[key, unescapeMap[key]];
+ searchRange.location = foundRange.location + foundRange.length;
+ searchRange.length = text.length - searchRange.location;
49
50
51
0 commit comments