Handle NSNumber.
This commit is contained in:
1 parent
4ff5bf5cdc
commit
afb15c3bea
1 file changed
+5
-2
@@ -69,10 +69,13 @@
|
||||
for (NSString *component in item.value) {
|
||||
if ([component hasPrefix:@"{"] && [component hasSuffix:@"}"] && component.length > 2) {
|
||||
NSString *subComponent = [component substringWithRange:NSMakeRange(1, component.length - 2)];
|
||||
NSString *value = _tags[subComponent];
|
||||
if (value.length) {
|
||||
id value = _tags[subComponent];
|
||||
if ([value isKindOfClass:[NSString class]] && [value length]) {
|
||||
[result appendString:value];
|
||||
}
|
||||
else if ([value isKindOfClass:[NSNumber class]]) {
|
||||
[result appendString:[value stringValue]];
|
||||
}
|
||||
}
|
||||
else {
|
||||
[result appendString:component];
|
||||
|
||||
Reference in new issue
Block a user