-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cce7f5
commit bc96ed7
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,9 @@ | |
|
||
/*! | ||
* Autolinker.js | ||
* 0.15.0 | ||
* 0.15.1 | ||
* | ||
* Copyright(c) 2014 Gregory Jacobs <[email protected]> | ||
* Copyright(c) 2015 Gregory Jacobs <[email protected]> | ||
* MIT Licensed. http://www.opensource.org/licenses/mit-license.php | ||
* | ||
* https://github.com/gregjacobs/Autolinker.js | ||
|
@@ -857,7 +857,7 @@ | |
htmlRegex : (function() { | ||
var tagNameRegex = /[0-9a-zA-Z][0-9a-zA-Z:]*/, | ||
attrNameRegex = /[^\s\0"'>\/=\x01-\x1F\x7F]+/, // the unicode range accounts for excluding control chars, and the delete char | ||
attrValueRegex = /(?:".*?"|'.*?'|[^'"=<>`\s]+)/, // double quoted, single quoted, or unquoted attribute values | ||
attrValueRegex = /(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/, // double quoted, single quoted, or unquoted attribute values | ||
nameEqualsValueRegex = attrNameRegex.source + '(?:\\s*=\\s*' + attrValueRegex.source + ')?'; // optional '=[value]' | ||
|
||
return new RegExp( [ | ||
|
Oops, something went wrong.