Skip to content

Commit 56c9231

Browse files
committed
Build v0.19.1
1 parent 84c577b commit 56c9231

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/Autolinker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
/*!
1818
* Autolinker.js
19-
* 0.19.0
19+
* 0.19.1
2020
*
2121
* Copyright(c) 2015 Gregory Jacobs <[email protected]>
22-
* MIT Licensed. http://www.opensource.org/licenses/mit-license.php
22+
* MIT
2323
*
2424
* https://github.com/gregjacobs/Autolinker.js
2525
*/
@@ -1731,7 +1731,7 @@ Autolinker.matchParser.MatchParser = Autolinker.Util.extend( Object, {
17311731
hashtagRegex = /(^|[^\w])#(\w{1,139})/, // For matching a Hashtag. Ex: #games
17321732

17331733
emailRegex = /(?:[\-;:&=\+\$,\w\.]+@)/, // something@ for email addresses (a.k.a. local-part)
1734-
phoneRegex = /(?:\+?\d{1,3}[-\s.])?\(?\d{3}\)?[-\s.]?\d{3}[-\s.]\d{4}/, // ex: (123) 456-7890, 123 456 7890, 123-456-7890, etc.
1734+
phoneRegex = /(?:\+?\d{1,3}[-\040.])?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]\d{4}/, // ex: (123) 456-7890, 123 456 7890, 123-456-7890, etc.
17351735
protocolRegex = /(?:[A-Za-z][-.+A-Za-z0-9]*:(?![A-Za-z][-.+A-Za-z0-9]*:\/\/)(?!\d+\/?)(?:\/\/)?)/, // match protocol, allow in format "http://" or "mailto:". However, do not match the first part of something like 'link:http://www.google.com' (i.e. don't match "link:"). Also, make sure we don't interpret 'google.com:8000' as if 'google.com' was a protocol here (i.e. ignore a trailing port number in this regex)
17361736
wwwRegex = /(?:www\.)/, // starting with 'www.'
17371737
domainNameRegex = /[A-Za-z0-9\.\-]*[A-Za-z0-9\-]/, // anything looking at all like a domain, non-unicode domains, not ending in a period

0 commit comments

Comments
 (0)