Merge pull request #39 from lbioser/fix_color_crash
fix crush when {color}
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -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_*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user