From 225d5d2a978280fb2b1969cf69e59625d6687646 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Mon, 16 Jan 2023 15:46:20 -0500 Subject: [PATCH] Fixed Cyrillic characters. --- Sources/SwiftMathRender/MathRender/MTMathAtomFactory.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftMathRender/MathRender/MTMathAtomFactory.swift b/Sources/SwiftMathRender/MathRender/MTMathAtomFactory.swift index 9947fb9..e38b174 100644 --- a/Sources/SwiftMathRender/MathRender/MTMathAtomFactory.swift +++ b/Sources/SwiftMathRender/MathRender/MTMathAtomFactory.swift @@ -526,7 +526,7 @@ public class MTMathAtomFactory { public static func atom(forCharacter ch: Character) -> MTMathAtom? { let chStr = String(ch) switch chStr { - case "\\u{0410}"..."\\u{044F}": + case "\u{0410}"..."\u{044F}": return MTMathAtom(type: .ordinary, value: chStr) case _ where ch.utf32Char < 0x0021 || ch.utf32Char > 0x007E: return nil