Fix an issue with flat number digit parsing.
This commit is contained in:
parent
bff28578fb
commit
550522d792
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue