NSDataDetector does not detect phone numbers with characters directly before the start of the number
| Originator: | harlanhaskins | ||
| Number: | rdar://21204361 | Date Originated: | 06/02/2015 |
| Status: | Resolved | Resolved: | Fixed |
| Product: | iOS | Product Version: | 8.4 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When attempting to detect a phone number, NSDataDetector fails to parse: TEST...555 555 5555 But succeeds with: TEST... 555 555 5555 Where the first line only detects the 555 5555 at the end, and disregards the 555 after the ellipsis. I've attached a sample project that reproduces the bug. Steps to Reproduce: Open sample App. Look at the UITextView. Expected Results: Both phone numbers are detected. Actual Results: Only the second phone number is detected.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!