Phone number detection on websites

Status
Not open for further replies.

tgessert

Customer
Joined
Jun 28, 2017
Messages
2
Reaction score
1
Let's say there is still room for improvement. I tested several webpages with the goal to find out if it is understandable and generally usable by our users. I habe to say our company is residing in Germany, so some this may be different to U.S.A. or somewhere else in the world.

Here some examples of my findings:

I noticed this text on a Microsoft doc site is marked as telephone number and converted into a link:
https://docs.microsoft.com/de-de/onedrive/per-machine-installation
Sync app build 19.174.0902.0013 or later.

Because this irritated me I looked on a typical company page in U.S.A. and found this variant of typing a phone number:
https://www.dell.com/learn/us/en/98/campaigns/contact-us-phone-number
Home & Home Office1-800-999-3355

First, both numbers would not lead to a callable number in the 3cx web client - at least in Germany:

13682

As you see, the leading zeroes or the plus sign for international calls is missing. So simple conversion of any probable phone number to a link is not a solution.

Second, and more difficult to solve is a better algorithm to detect phone numbers or better to have less false positives like the build numbers above. Sure, if you hover the mouse over the klink you see that it's leading to the 3CX web client but on the first sight it's a link to details of this build.
How does it work, will any numbers > n and <= 15 digits excluding any separators be presented as link?

Thanks,
Thomas
 
  • Like
Reactions: autohaus
19.174.0902.0013 is not converted to a link for me. I am on a new Mac Book Pro running latest Chrome.
My provider requires a + and I use my Outgoing rules to ensure 1-800-999-3355 dials +18009993355.
 
OK, I forgot to mention the browser I'm using:

Microsoft Edge (Chromium), Version 80.0.361.23 (Official Build) dev (64-Bit)
on Windows 10 / Server 2019

Can't test Google Chrome anymore as I uninstalled it already. With the release of the first production version probably at the next Microsoft patchday in January we will start using this browser as standard. My information is that this should be based on Chromium version 79.
 
Status
Not open for further replies.

Forum statistics

Threads
112,025
Messages
590,367
Members
164,976
Latest member
Roman Mazur