Skip to content

Commit fe79604

Browse files
committed
Latest build
1 parent 9a481ac commit fe79604

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

dist/Autolinker.js

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

dist/Autolinker.js.map

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

dist/Autolinker.min.js.map

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h3>Others...</h3>
8888

8989

9090

91-
<div id='footer-content' style='display: none'>Generated on Mon 21 Jan 2019 23:33:35 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
91+
<div id='footer-content' style='display: none'>Generated on Tue 22 Jan 2019 12:37:00 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
9292

9393

9494

docs/api/output/global.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/source/Autolinker.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,14 +599,19 @@
599599
}
600600
},
601601
onText: function (text, offset) {
602+
// Only process text nodes that are not within an &lt;a&gt;, &lt;style&gt; or &lt;script&gt; tag
602603
if (skipTagsStackCount === 0) {
603-
// Process text nodes that are not within an &lt;a&gt;, &lt;style&gt; or &lt;script&gt; tag
604+
// &quot;Walk around&quot; common HTML entities. An &#39;&amp;nbsp;&#39; (for example)
605+
// could be at the end of a URL, but we don&#39;t want to
606+
// include the trailing &#39;&amp;&#39; in the URL. See issue #76
607+
// TODO: Handle HTML entities separately in parseHtml() and
608+
// don&#39;t emit them as &quot;text&quot; except for &amp;amp; entities
604609
var htmlCharacterEntitiesRegex = /(&amp;nbsp;|&amp;#160;|&amp;lt;|&amp;#60;|&amp;gt;|&amp;#62;|&amp;quot;|&amp;#34;|&amp;#39;)/gi;
605610
var textSplit = utils_1.splitAndCapture(text, htmlCharacterEntitiesRegex);
606611
var currentOffset_1 = offset;
607612
textSplit.forEach(function (splitText, i) {
608-
if (i % 2 === 0) { // even number matches are text, odd numbers are html entities
609-
// TODO: ADD TEST THAT HAS AN HTML ENTITY AS ITS FIRST WORD
613+
// even number matches are text, odd numbers are html entities
614+
if (i % 2 === 0) {
610615
var textNodeMatches = _this.parseText(splitText, currentOffset_1);
611616
matches.push.apply(matches, textNodeMatches);
612617
}

docs/dist/Autolinker.js

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

0 commit comments

Comments
 (0)