From d84db07ef343be6c2e208589976a937d156d009d Mon Sep 17 00:00:00 2001 From: libing Date: Wed, 12 Feb 2025 06:15:06 +0000 Subject: [PATCH] --- .gitignore | 9 +++++++++ Sources/SwiftMath/MathRender/MTMathListBuilder.swift | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3b29812..a1d4620 100755 --- a/.gitignore +++ b/.gitignore @@ -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_* diff --git a/Sources/SwiftMath/MathRender/MTMathListBuilder.swift b/Sources/SwiftMath/MathRender/MTMathListBuilder.swift index 3b146c9..406712f 100755 --- a/Sources/SwiftMath/MathRender/MTMathListBuilder.swift +++ b/Sources/SwiftMath/MathRender/MTMathListBuilder.swift @@ -626,7 +626,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