Skip to content

Instantly share code, notes, and snippets.

@aaroncaito
Last active December 19, 2015 22:39
Show Gist options
  • Save aaroncaito/6029345 to your computer and use it in GitHub Desktop.
Save aaroncaito/6029345 to your computer and use it in GitHub Desktop.
Tel:// compat phonenum formatting
phone = phone.replace(/[- ()]/g, "")
return "1"+phone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment