Skip to content

Commit

Permalink
Build 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjacobs committed Nov 21, 2016
1 parent 2a478a7 commit 98f5a80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions dist/Autolinker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Autolinker.js
* 1.3.0
* 1.3.1
*
* Copyright(c) 2016 Gregory Jacobs <[email protected]>
* MIT License
Expand Down Expand Up @@ -240,7 +240,7 @@ Autolinker.parse = function( textOrHtml, options ) {
*
* Ex: 0.25.1
*/
Autolinker.version = '1.3.0';
Autolinker.version = '1.3.1';


Autolinker.prototype = {
Expand Down Expand Up @@ -1915,7 +1915,14 @@ Autolinker.htmlParser.HtmlParser = Autolinker.Util.extend( Object, {
// Push TextNodes and EntityNodes for any text found between tags
if( text ) {
textAndEntityNodes = this.parseTextAndEntityNodes( lastIndex, text );
nodes.push.apply( nodes, textAndEntityNodes );

// Note: the following 3 lines were previously:
// nodes.push.apply( nodes, textAndEntityNodes );
// but this was causing a "Maximum Call Stack Size Exceeded"
// error on inputs with a large number of html entities.
textAndEntityNodes.forEach( function( node ) {
nodes.push( node );
} );
}
}

Expand Down
Loading

0 comments on commit 98f5a80

Please sign in to comment.