diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 192c59210..799042c8d 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4323,7 +4323,7 @@ break; } else { if (link = Linkify.regString.exec(result[0])) { - range = Linkify.makeRange(node, node, index + link.index, length); + range = Linkify.makeRange(node, node, index, length); links.push(range); } } diff --git a/builds/crx/script.js b/builds/crx/script.js index e63455431..338da5157 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4332,7 +4332,7 @@ break; } else { if (link = Linkify.regString.exec(result[0])) { - range = Linkify.makeRange(node, node, index + link.index, length); + range = Linkify.makeRange(node, node, index, length); links.push(range); } } diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 15debb5e1..38d9380d2 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -77,7 +77,7 @@ Linkify = else if link = Linkify.regString.exec result[0] - range = Linkify.makeRange node, node, index + link.index, length + range = Linkify.makeRange node, node, index, length links.push range for range in links.reverse()