oops
authorLanius Trolling <lanius@laniustrolling.dev>
Wed, 14 Dec 2022 22:38:29 +0000 (17:38 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Wed, 14 Dec 2022 22:38:29 +0000 (17:38 -0500)
src/main/kotlin/info/mechyrdia/lore/tylan_language.kt

index 1a88a51037b3d0e41b3cb8e2fe0ba56894874638..f4d5395dbc48989bc26ecda057dd404c411f6105 100644 (file)
@@ -11,8 +11,8 @@ object TylanAlphabet {
        )
        
        private val replacements = listOf(
-               Regex("([0-9xy]+)(?!\\s)") to "$1 ",
-               Regex("(?<!\\s)([0-9xy]+)") to " $1",
+               Regex("([0-9xy]+)(?![\\s0-9xy])") to "$1 ",
+               Regex("(?<![\\s0-9xy])([0-9xy]+)") to " $1",
                
                Regex("([a-pr-v'])m(?![\\w'])") to "$1A",
                Regex("([a-pr-v'])n(?![\\w'])") to "$1E",