From 15d1772c242a47794b9177aaa809b43cf47a59e6 Mon Sep 17 00:00:00 2001 From: dotmg Date: Wed, 13 Aug 2025 11:54:40 +0200 Subject: [PATCH] Bugfix: 'd, 2' instead of 'd,2' was buggy --- composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/Solfa.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/Solfa.kt b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/Solfa.kt index e09400a..923e7e1 100644 --- a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/Solfa.kt +++ b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/Solfa.kt @@ -181,7 +181,8 @@ class Solfa(val sharedScreenModel: SharedScreenModel, private val fileRepository val voiceNumber = noteLine.substring(0, 1).toInt() val templateStripped = REGEX_TEMPLATE_COMMENT.replace(templateString, "") val templateCharArray = templateStripped.toCharArray() - val noteLine = REGEX_TEMPLATE_COMMENT.replace(noteLine, "") + val noteLine = noteLine.replace(REGEX_TEMPLATE_COMMENT, "") + .replace(" ", "") val lineRepeated = REGEX_REPETITION.replace(noteLine.substring(1)) { matchResult -> val (charIterated, iteration) = matchResult.destructured val nTimes = iteration.toInt()