gregjacobs / Autolinker.js

Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML
MIT License
1.48k stars 238 forks source link

phone number format #128

Closed martingg88 closed 7 years ago

martingg88 commented 8 years ago

does it handle the following format?

+60128183555

simison commented 8 years ago

Nope. :-/

http://rubular.com/r/Ljut8sn7oS

https://github.com/gregjacobs/Autolinker.js/blob/master/src/matchParser/MatchParser.js#L114

(Duplicate of #95)

martingg88 commented 8 years ago

can i add custom matcherRegex to handle most of the phone format from the world?

gregjacobs commented 8 years ago

Hey @martingg88. If you can provide that regex, would be happy to include it with the core library!

olafleur commented 7 years ago

In the last version, this format is handled.

tangkunyin commented 7 years ago

@gregjacobs Does matcherRegex not support external definition?