Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Spaces in Contact Phone Number are breaking search filter #188

Closed
joeldhenry opened this issue Nov 21, 2018 · 3 comments
Closed

Spaces in Contact Phone Number are breaking search filter #188

joeldhenry opened this issue Nov 21, 2018 · 3 comments

Comments

@joeldhenry
Copy link

joeldhenry commented Nov 21, 2018

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
Copy link
Author

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
Copy link
Author

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.

@timbru31
Copy link
Member

timbru31 commented Jan 9, 2023

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 timbru31 closed this as completed Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants