refactor: Fix overlapping filenames for StringUtil

This commit is contained in:
Linnea Gräf
2024-11-17 16:58:30 +01:00
parent 9eaa41db6a
commit 915ab96b24
3 changed files with 5 additions and 7 deletions

View File

@@ -5,5 +5,9 @@ object StringUtil {
return splitToSequence(" ") // TODO: better boundaries
}
fun parseIntWithComma(string: String): Int {
return string.replace(",", "").toInt()
}
fun Iterable<String>.unwords() = joinToString(" ")
}