Allow commas in phone numbers

Close #899
This commit is contained in:
MM20 2024-06-29 22:21:26 +02:00
parent 304ca12e65
commit 0e7c515a31
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -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)) {