Only need regexp.test here.

This commit is contained in:
ccd0 2014-12-07 04:22:34 -08:00
parent 51658f8a0e
commit 679fa9fbdc

View File

@ -63,7 +63,7 @@ Linkify =
{length} = data
word += data
if Linkify.regString.exec word
if Linkify.regString.test word
links.push Linkify.makeRange node, endNode, index, length
<%= assert('word is links[links.length-1].toString()') %>