Allow , and # characters in tel number (for example when calling Teams)
This commit is contained in:
@@ -331,7 +331,7 @@ object Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun isTelNumber(no: String): Boolean {
|
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 {
|
fun isTelUri(uri: String): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user