We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CodingKey.sanitizedName
1 parent 8f05e88 commit c976028Copy full SHA for c976028
Sources/JavaScriptKit/Extensions/CodingKey.swift
@@ -22,8 +22,7 @@ internal extension CodingKey {
22
guard elements.count > 2
23
else { return rawName }
24
elements.removeFirst()
25
- // FIXME: Needs Foundation for String extensions
26
- //elements.removeAll { $0.contains("(unknown context") }
+ elements.removeAll { $0.hasPrefix("(unknown context") }
27
return elements.reduce("", { $0 + ($0.isEmpty ? "" : ".") + $1 })
28
}
29
0 commit comments