Skip to content

Commit 072d104

Browse files
committed
Build v0.27.0
1 parent abb9f99 commit 072d104

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/Autolinker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Autolinker.js
3-
* 0.26.1
3+
* 0.27.0
44
*
55
* Copyright(c) 2016 Gregory Jacobs <[email protected]>
66
* MIT License
@@ -192,7 +192,7 @@ Autolinker.link = function( textOrHtml, options ) {
192192
*
193193
* Ex: 0.25.1
194194
*/
195-
Autolinker.version = '0.26.1';
195+
Autolinker.version = '0.27.0';
196196

197197

198198
Autolinker.prototype = {
@@ -1617,7 +1617,7 @@ Autolinker.htmlParser.HtmlParser = Autolinker.Util.extend( Object, {
16171617
htmlRegex : (function() {
16181618
var commentTagRegex = /!--([\s\S]+?)--/,
16191619
tagNameRegex = /[0-9a-zA-Z][0-9a-zA-Z:]*/,
1620-
attrNameRegex = /[^\s\0"'>\/=\x01-\x1F\x7F]+/, // the unicode range accounts for excluding control chars, and the delete char
1620+
attrNameRegex = /[^\s"'>\/=\x00-\x1F\x7F]+/, // the unicode range accounts for excluding control chars, and the delete char
16211621
attrValueRegex = /(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/, // double quoted, single quoted, or unquoted attribute values
16221622
nameEqualsValueRegex = attrNameRegex.source + '(?:\\s*=\\s*' + attrValueRegex.source + ')?'; // optional '=[value]'
16231623

@@ -1657,7 +1657,7 @@ Autolinker.htmlParser.HtmlParser = Autolinker.Util.extend( Object, {
16571657

16581658
// Zero or more attributes following the tag name
16591659
'(?:',
1660-
'\\s*', // any number of whitespace chars before an attribute
1660+
'(?:\\s+|\\b)', // any number of whitespace chars before an attribute. NOTE: Using \s* here throws Chrome into an infinite loop for some reason, so using \s+|\b instead
16611661
nameEqualsValueRegex, // attr="value" (with optional ="value" part)
16621662
')*',
16631663

0 commit comments

Comments
 (0)