diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 407f59774..f5ce94ae5 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -18,7 +18,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.25 - 2013-08-04 +* 4chan X - Version 1.2.25 - 2013-08-05 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4368,6 +4368,7 @@ range.setEnd(node, len2); links.push(range); } + Linkify.regString.lastIndex = 0; if (match) { Linkify.seek(match, node, post); } diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index a29024470..737da813f 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -17,7 +17,7 @@ // ==/UserScript== /* -* appchan x - Version 2.2.2 - 2013-08-04 +* appchan x - Version 2.2.2 - 2013-08-05 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -6660,6 +6660,7 @@ range.setEnd(node, len2); links.push(range); } + Linkify.regString.lastIndex = 0; if (match) { Linkify.seek(match, node, post); } diff --git a/builds/crx/script.js b/builds/crx/script.js index 6eb401ded..da34384e4 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.2.2 - 2013-08-04 +* appchan x - Version 2.2.2 - 2013-08-05 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -6667,6 +6667,7 @@ range.setEnd(node, len2); links.push(range); } + Linkify.regString.lastIndex = 0; if (match) { Linkify.seek(match, node, post); } diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 599a11245..c32ec484e 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -76,6 +76,8 @@ Linkify = range.setEnd node, len2 links.push range + Linkify.regString.lastIndex = 0 + if match Linkify.seek match, node, post