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

getPhoneNumber() doesn't exist (issue with Live Demo Page) #233

Closed arctic-ice-cool closed 5 years ago

arctic-ice-cool commented 6 years ago

Hi,

getPhoneNumber() doesn't exist in the code any more, so match.getPhoneNumber() doesn't work.

This is only used on the Dynamic Demo Page, therefore it's just that that needs changing to match.getNumber()

http://greg-jacobs.com/Autolinker.js/examples/live-example/

gregjacobs commented 5 years ago

Hey, thanks for this. Sorry for the wild delay! I actually re-added the getPhoneNumber() method in v2.1.0 - felt like it was a bit clearer than getNumber() (although getNumber() still exists)