Fix item read time calculation

This commit is contained in:
Shinokuni 2024-04-26 18:02:36 +02:00
parent 6893e9a199
commit a3ffde0d73
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ object Utils {
private const val AVERAGE_WORDS_PER_MINUTE = 250
fun readTimeFromString(value: String): Double {
val nbWords = value.split("\\s+").size
val nbWords = value.split(Regex("\\s+")).size
return nbWords.toDouble() / AVERAGE_WORDS_PER_MINUTE
}