Skip to content

Commit

Permalink
Latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjacobs committed Jan 22, 2019
1 parent 9a481ac commit fe79604
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 13 deletions.
11 changes: 8 additions & 3 deletions dist/Autolinker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Autolinker.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/Autolinker.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h3>Others...</h3>



<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>
<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>



Expand Down
2 changes: 1 addition & 1 deletion docs/api/output/global.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions docs/api/source/Autolinker.html
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,19 @@
}
},
onText: function (text, offset) {
// Only process text nodes that are not within an &lt;a&gt;, &lt;style&gt; or &lt;script&gt; tag
if (skipTagsStackCount === 0) {
// Process text nodes that are not within an &lt;a&gt;, &lt;style&gt; or &lt;script&gt; tag
// &quot;Walk around&quot; common HTML entities. An &#39;&amp;nbsp;&#39; (for example)
// could be at the end of a URL, but we don&#39;t want to
// include the trailing &#39;&amp;&#39; in the URL. See issue #76
// TODO: Handle HTML entities separately in parseHtml() and
// don&#39;t emit them as &quot;text&quot; except for &amp;amp; entities
var htmlCharacterEntitiesRegex = /(&amp;nbsp;|&amp;#160;|&amp;lt;|&amp;#60;|&amp;gt;|&amp;#62;|&amp;quot;|&amp;#34;|&amp;#39;)/gi;
var textSplit = utils_1.splitAndCapture(text, htmlCharacterEntitiesRegex);
var currentOffset_1 = offset;
textSplit.forEach(function (splitText, i) {
if (i % 2 === 0) { // even number matches are text, odd numbers are html entities
// TODO: ADD TEST THAT HAS AN HTML ENTITY AS ITS FIRST WORD
// even number matches are text, odd numbers are html entities
if (i % 2 === 0) {
var textNodeMatches = _this.parseText(splitText, currentOffset_1);
matches.push.apply(matches, textNodeMatches);
}
Expand Down
11 changes: 8 additions & 3 deletions docs/dist/Autolinker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe79604

Please sign in to comment.