Only need regexp.test here.
This commit is contained in:
parent
51658f8a0e
commit
679fa9fbdc
@ -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()') %>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user