Forgot to amend

This commit is contained in:
Zixaphir 2013-08-17 02:49:47 -07:00
parent 8429c60d30
commit c2bf431df6
3 changed files with 3 additions and 3 deletions

View File

@ -4481,7 +4481,7 @@
if (Linkify.regString.exec(word)) {
links.push(Linkify.makeRange(node, endNode, index, length));
}
if (!(test.lastIndex || node === endNode)) {
if (!(test.lastIndex && node === endNode)) {
break;
}
}

View File

@ -4490,7 +4490,7 @@
if (Linkify.regString.exec(word)) {
links.push(Linkify.makeRange(node, endNode, index, length));
}
if (!(test.lastIndex || node === endNode)) {
if (!(test.lastIndex && node === endNode)) {
break;
}
}

View File

@ -78,7 +78,7 @@ Linkify =
if Linkify.regString.exec word
links.push Linkify.makeRange node, endNode, index, length
break unless test.lastIndex or node is endNode
break unless test.lastIndex and node is endNode
for link in links.reverse()
@nodes.links.push Linkify.makeLink link, @