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()