Add basic alpha number support for detecting phone numbers
commitd0b04b531eff27abd302a25b4b9f4e1c5089ae67
authorqinmin <qinmin@chromium.org>
Mon, 10 Nov 2014 22:15:15 +0000 (10 14:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 10 Nov 2014 22:15:39 +0000 (10 22:15 +0000)
treed22cd63697bc26878a7d47cfbfb876bcaf66b08c
parent96fcb48cabde168abcd1c1c2e1520e1ac9df0357
Add basic alpha number support for detecting phone numbers

Alpha numbers or Vanity numbers are currently not supported in chrome.
This change adds some basic support for that, so 1-800-flowers will be translated.
However, if there are other characters on either side of the number, we currently don't support that.
I will follow up with other changes to improve the text detection.

BUG=150324

Review URL: https://codereview.chromium.org/708863003

Cr-Commit-Position: refs/heads/master@{#303520}
content/renderer/android/phone_number_detector.cc
content/renderer/android/phone_number_detector_unittest.cc