This commit is contained in:
RSR/
2026-03-12 02:12:09 +04:00
parent 6948d86efc
commit 50199b052f
2 changed files with 7 additions and 14 deletions

View File

@@ -69,8 +69,7 @@ class UserInterfaceTweaks : ConfigContainer() {
inputCheck = { input ->
if (input.isEmpty()) true
else {
val digits = input.replace(Regex("[^0-9]"), "")
digits.isNotEmpty() && digits.length <= 7 && digits.toLong() <= 9999999L
input.replace(Regex("[^0-9]"), "").isNotEmpty()
}
}
}