Allow commas in phone numbers

Close #899
This commit is contained in:
MM20
2024-06-29 22:21:38 +02:00
parent 304ca12e65
commit 0e7c515a31
@@ -106,7 +106,7 @@ internal class ContactRepository(
ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE ->
dataCursor.getStringOrNull(numberColumn)?.let {
val phone = it.replace(Regex("[^+0-9]"), "")
val phone = it.replace(Regex("[^+0-9],"), "")
phoneNumbers += PhoneNumber(
phone,
when (dataCursor.getInt(typeColumn)) {