Skip to content

Commit 9689831

Browse files
committed
Add support for underscores in email address
1 parent a961a0b commit 9689831

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/Autolinker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2867,7 +2867,7 @@ Autolinker.matcher.Email = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
28672867
*/
28682868
matcherRegex : (function() {
28692869
var alphaNumericChars = Autolinker.RegexLib.alphaNumericCharsStr,
2870-
emailRegex = new RegExp( '[' + alphaNumericChars + '\\-;:&=+$.,]+@' ), // something@ for email addresses (a.k.a. local-part)
2870+
emailRegex = new RegExp( '[' + alphaNumericChars + '\\-\\_;:&=+$.,]+@' ), // something@ for email addresses (a.k.a. local-part)
28712871
domainNameRegex = Autolinker.RegexLib.domainNameRegex,
28722872
tldRegex = Autolinker.RegexLib.tldRegex; // match our known top level domains (TLDs)
28732873

0 commit comments

Comments
 (0)