Fix an issue with flat number digit parsing.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2024-05-30 18:52:40 +02:00
parent bff28578fb
commit 550522d792

View file

@ -6,7 +6,7 @@ import javax.inject.Inject
class FlatValueParser @Inject constructor() {
companion object {
private val FLAT_REGEX = Regex("(?<!d)([-+]?\\s?\\d+)(?!d)")
private val FLAT_REGEX = Regex("(?<!d)([+-]\\s?\\d+)(?!d)|^\\d+\$")
}
fun parse(value: String): Int {