Skip to content

Commit 56fe4a6

Browse files
committed
Build v1.8.3
1 parent 19ae180 commit 56fe4a6

31 files changed

+1056
-1056
lines changed

dist/Autolinker.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Autolinker.js
3-
* 1.8.0
3+
* 1.8.3
44
*
55
* Copyright(c) 2018 Gregory Jacobs <[email protected]>
66
* MIT License
@@ -241,7 +241,7 @@ Autolinker.parse = function( textOrHtml, options ) {
241241
*
242242
* Ex: 0.25.1
243243
*/
244-
Autolinker.version = '1.8.0';
244+
Autolinker.version = '1.8.3';
245245

246246

247247
Autolinker.prototype = {
@@ -623,19 +623,19 @@ Autolinker.prototype = {
623623
matches = [];
624624

625625
// Find all matches within the `textOrHtml` (but not matches that are
626-
// already nested within <a> tags)
626+
// already nested within <a>, <style> and <script> tags)
627627
for( var i = 0, len = htmlNodes.length; i < len; i++ ) {
628628
var node = htmlNodes[ i ],
629629
nodeType = node.getType();
630630

631-
if( nodeType === 'element' && node.getTagName() === 'a' ) { // Process HTML anchor element nodes in the input `textOrHtml` to find out when we're within an <a> tag
632-
if( !node.isClosing() ) { // it's the start <a> tag
631+
if( nodeType === 'element' && ['a', 'style', 'script'].indexOf(node.getTagName()) !== -1 ) { // Process HTML anchor, style and script element nodes in the input `textOrHtml` to find out when we're within an <a>, <style> or <script> tag
632+
if( !node.isClosing() ) { // it's the start <a>, <style> or <script> tag
633633
anchorTagStackCount++;
634-
} else { // it's the end </a> tag
634+
} else { // it's the end </a>, </style> or </script> tag
635635
anchorTagStackCount = Math.max( anchorTagStackCount - 1, 0 ); // attempt to handle extraneous </a> tags by making sure the stack count never goes below 0
636636
}
637637

638-
} else if( nodeType === 'text' && anchorTagStackCount === 0 ) { // Process text nodes that are not within an <a> tag
638+
} else if( nodeType === 'text' && anchorTagStackCount === 0 ) { // Process text nodes that are not within an <a>, <style> and <script> tag
639639
var textNodeMatches = this.parseText( node.getText(), node.getOffset() );
640640

641641
matches.push.apply( matches, textNodeMatches );

dist/Autolinker.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/data-ba589d80363e4dc2928039ffc84fe02d.js renamed to docs/api/data-cbf05328ff4addd8e05a634898c286ca.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Autolinker v1.7.1 API Docs</title>
4+
<title>Autolinker v1.8.3 API Docs</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<meta http-equiv="X-UA-Compatible" content="chrome=1">
77
<meta name="fragment" content="!">
@@ -13,7 +13,7 @@
1313
<link rel="stylesheet" href="styles-3eba09980fa05ead185cb17d9c0deb0f.css" type="text/css" />
1414

1515
<script type="text/javascript" src="extjs/ext-all.js"></script>
16-
<script type="text/javascript" src="data-ba589d80363e4dc2928039ffc84fe02d.js"></script>
16+
<script type="text/javascript" src="data-cbf05328ff4addd8e05a634898c286ca.js"></script>
1717

1818
<script type="text/javascript" src="app-0c945a27f43452df695771ddb60b3d14.js"></script>
1919

@@ -22,9 +22,9 @@
2222
</head>
2323
<body id="ext-body">
2424

25-
<div id="loading"><span class="title">Autolinker v1.7.1 API Docs</span><span class="logo"></span></div>
25+
<div id="loading"><span class="title">Autolinker v1.8.3 API Docs</span><span class="logo"></span></div>
2626

27-
<div id="header-content">Autolinker v1.7.1 API Docs</div>
27+
<div id="header-content">Autolinker v1.8.3 API Docs</div>
2828

2929
<div id='categories-content' style='display:none'>
3030
<div class='section'>
@@ -82,7 +82,7 @@ <h3>Others...</h3>
8282

8383

8484

85-
<div id='footer-content' style='display: none'>Generated on Sat 17 Nov 2018 20:34:32 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
85+
<div id='footer-content' style='display: none'>Generated on Wed 19 Dec 2018 18:46:01 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
8686

8787

8888

docs/api/output/Autolinker.match.Email.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/output/Autolinker.match.Hashtag.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/output/Autolinker.match.Mention.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/output/Autolinker.match.Phone.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/output/Autolinker.match.Url.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/output/Autolinker.matcher.Email.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)