Allow , and # characters in tel number (for example when calling Teams)

This commit is contained in:
Juha Heinanen
2024-09-21 10:38:47 +03:00
parent 7e36c2a9b7
commit 366b6ed5a8

View File

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