Merge pull request #39 from lbioser/fix_color_crash

fix crush when {color}
This commit is contained in:
mgriebling
2025-04-22 10:02:40 -04:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

9
.gitignore vendored
View File

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

View File

@@ -629,7 +629,7 @@ public struct MTMathListBuilder {
var mutable = ""
while self.hasCharacters {
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]];
} else {
// we went too far