diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-04-11 20:58:42 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-04-16 14:46:51 -0700 |
commit | dee5d8f7a07c3a0fc9957a42b7eb9801f08c006e (patch) | |
tree | 24d114189f83bd2b95d7d15ebecd6eb78cd1e136 | |
parent | 3cc5a7dc2a306fc4c0c77113266b9e95312516f4 (diff) | |
download | qtlocation-mapboxgl-dee5d8f7a07c3a0fc9957a42b7eb9801f08c006e.tar.gz |
[ios, macos] Preserve whitespace between tokens
-rw-r--r-- | platform/darwin/src/NSExpression+MGLAdditions.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/darwin/src/NSExpression+MGLAdditions.mm b/platform/darwin/src/NSExpression+MGLAdditions.mm index 4b08196054..3cad0fe2a4 100644 --- a/platform/darwin/src/NSExpression+MGLAdditions.mm +++ b/platform/darwin/src/NSExpression+MGLAdditions.mm @@ -1167,6 +1167,7 @@ NS_DICTIONARY_OF(NSNumber *, NSExpression *) *MGLStopDictionaryByReplacingTokens [constantValue containsString:@"{"] && [constantValue containsString:@"}"]) { NSMutableArray *components = [NSMutableArray array]; NSScanner *scanner = [NSScanner scannerWithString:constantValue]; + scanner.charactersToBeSkipped = nil; while (!scanner.isAtEnd) { NSString *string; if ([scanner scanUpToString:@"{" intoString:&string]) { |