From de64a4d806889558b8c0d1be42933eefec225641 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 8 Jan 2025 12:24:06 +0600 Subject: [PATCH] __small__ optimization --- src/commonMain/kotlin/internal/Parser.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/commonMain/kotlin/internal/Parser.kt b/src/commonMain/kotlin/internal/Parser.kt index 1df950f..6d96b19 100644 --- a/src/commonMain/kotlin/internal/Parser.kt +++ b/src/commonMain/kotlin/internal/Parser.kt @@ -81,10 +81,8 @@ private val checkIncomingPartTransitionsMap = listOf( listOf( // 0 Regex("\\d") to 1, Regex("\\*") to 3, - Regex("F") to 6, - Regex("f") to 6, - Regex("L") to 6, - Regex("l") to 6, + Regex("[Ff]") to 6, + Regex("[Ll]") to 6, Regex("/") to 5, ), listOf( // 1 @@ -97,8 +95,7 @@ private val checkIncomingPartTransitionsMap = listOf( Regex("w") to 9, ), listOf( // 2 - Regex("L") to 6, - Regex("l") to 6, + Regex("[Ll]") to 6, Regex("\\d") to 7, ), listOf( // 3