Skip to content

Commit

Permalink
修复iOS12上的encode问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Mccc committed Dec 6, 2024
1 parent b66977b commit c926e21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SmartCodable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions SmartCodable/Classes/JSONValue/JSONValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c926e21

Please sign in to comment.