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.
1 parent dd50f85 commit 532bc2fCopy full SHA for 532bc2f
Sources/_OpenAPIGeneratorCore/Extensions/String.swift
@@ -82,7 +82,8 @@ fileprivate extension String {
82
outScalar = scalar
83
} else {
84
var hexString = String(scalar.value, radix: 16, uppercase: true)
85
- if let firstChar = hexString.unicodeScalars.first,
+ if index == 0,
86
+ let firstChar = hexString.unicodeScalars.first,
87
!firstCharSet.contains(firstChar) {
88
hexString = "_\(hexString)"
89
}
0 commit comments