diff --git a/SmartCodable.podspec b/SmartCodable.podspec index 400d084..7cca401 100644 --- a/SmartCodable.podspec +++ b/SmartCodable.podspec @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.name = 'SmartCodable' - s.version = '4.3.0' + s.version = '4.3.2' s.summary = '数据解析库' s.homepage = 'https://github.com/intsig171' diff --git a/SmartCodable/Classes/JSONValue/JSONValue.swift b/SmartCodable/Classes/JSONValue/JSONValue.swift index 5dc4af2..9078aa3 100644 --- a/SmartCodable/Classes/JSONValue/JSONValue.swift +++ b/SmartCodable/Classes/JSONValue/JSONValue.swift @@ -394,6 +394,11 @@ extension JSONValue { bytes.append(contentsOf: [._backslash, UInt8(ascii: "/")]) nextIndex = stringBytes.index(after: nextIndex) startCopyIndex = nextIndex + } else { + bytes.append(contentsOf: stringBytes[startCopyIndex ..< nextIndex]) + bytes.append(contentsOf: [._backslash, UInt8(ascii: "/")]) + nextIndex = stringBytes.index(after: nextIndex) + startCopyIndex = nextIndex } default: