Allow * character in telephone number

This commit is contained in:
Juha Heinanen
2025-02-13 05:01:32 +02:00
parent e7479e5824
commit d5f3661b6f

View File

@ -335,7 +335,7 @@ object Utils {
}
fun isTelNumber(no: String): Boolean {
return no.isNotEmpty() && Regex("^([+][1-9])?[0-9- (),#]{0,24}\$").matches(no)
return no.isNotEmpty() && Regex("^([+][1-9])?[0-9- (),*#]{0,24}\$").matches(no)
}
fun isTelUri(uri: String): Boolean {