This commit is contained in:
libing
2025-02-12 06:15:06 +00:00
parent 606f9be66d
commit d84db07ef3
2 changed files with 10 additions and 1 deletions

9
.gitignore vendored
View File

@@ -7,3 +7,12 @@ DerivedData/
.swiftpm/config/registries.json .swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc .netrc
.idea
*__gen.go
*__ignore.go
*.swp
*.swo
~i_*
ig_*
zzzig_*

View File

@@ -626,7 +626,7 @@ public struct MTMathListBuilder {
var mutable = "" var mutable = ""
while self.hasCharacters { while self.hasCharacters {
let ch = self.getNextCharacter() let ch = self.getNextCharacter()
if ch == "#" || (ch >= "A" && ch <= "F") || (ch >= "a" && ch <= "f") || (ch >= "0" && ch <= "9") { if ch == "#" || (ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z") || (ch >= "0" && ch <= "9") {
mutable.append(ch) // appendString:[NSString stringWithCharacters:&ch length:1]]; mutable.append(ch) // appendString:[NSString stringWithCharacters:&ch length:1]];
} else { } else {
// we went too far // we went too far