Bugfix: 'd, 2' instead of 'd,2' was buggy

This commit is contained in:
dotmg 2025-08-13 11:54:40 +02:00
parent f086773059
commit 15d1772c24

View file

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