Skip to content

Commit

Permalink
chore(ios): update code formatting for TIMOB-27874
Browse files Browse the repository at this point in the history
  • Loading branch information
jquick-axway authored and sgtcoolguy committed Jul 16, 2020
1 parent ed7bbe6 commit d5e0503
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iphone/Classes/LocaleModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ - (NSNumber *)parseDecimal:(NSString *)text withLocaleId:(id)localeId
// Note: If locale uses whitespace separators (like French), then remove all whitespace character types.
NSString *thousandsSeparator = [locale objectForKey:NSLocaleGroupingSeparator];
NSCharacterSet *whitespaceCharSet = [NSCharacterSet whitespaceCharacterSet];
if ([thousandsSeparator rangeOfCharacterFromSet: whitespaceCharSet].location != NSNotFound) {
if ([text rangeOfCharacterFromSet: whitespaceCharSet].location != NSNotFound) {
text = [[text componentsSeparatedByCharactersInSet: whitespaceCharSet] componentsJoinedByString: @""];
if ([thousandsSeparator rangeOfCharacterFromSet:whitespaceCharSet].location != NSNotFound) {
if ([text rangeOfCharacterFromSet:whitespaceCharSet].location != NSNotFound) {
text = [[text componentsSeparatedByCharactersInSet:whitespaceCharSet] componentsJoinedByString:@""];
}
} else {
text = [text stringByReplacingOccurrencesOfString:thousandsSeparator withString:@""];
Expand Down

0 comments on commit d5e0503

Please sign in to comment.