cordova-plugin-contacts icon indicating copy to clipboard operation
cordova-plugin-contacts copied to clipboard

Spaces in Contact Phone Number are breaking search filter

Open joeldhenry opened this issue 6 years ago • 2 comments

Finding a contact by phoneNumbers will not return the contact unless filter string is identical to contact phone number:

Example: filter: '049999111' will return contact with phone number '0499991111' however Example: filter: '049999111' will not return contact with phone number '04 9999 1111' Example: filter: '04 9999 111' will not return contact with phone number '0499991111'

Example: filter: '9111' will return contact with phone number '0499991111' however Example: filter: '9111' will not return contact with phone number '04 9999 1111'

Since the phone number is unknown what format it will be in, the spacing should be disregarded

Cordova 7.1.0 Cordova iOS 4.5.5 iOS 12.1 iPhone X

joeldhenry avatar Nov 21 '18 02:11 joeldhenry

Temporarily I have transformed my filter searches to be in the format of "123 123 123" to fix the spaces interfering with my search's

joeldhenry avatar Nov 21 '18 03:11 joeldhenry

update: also seems that phone numbers in iOS 11 have no-break spaces instead of regular spaces, which also does not find contacts, i cannot repeat this in iOS 12 though.

joeldhenry avatar Jan 23 '19 04:01 joeldhenry

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.

timbru31 avatar Jan 09 '23 07:01 timbru31