Closed grosser closed 7 years ago
yeah, that's pretty weird, the actual is substantially different... dunno, maybe part of the whole revamp?
Looks like the autolink_delim
reference in autolink__email
was missed here.
The fixed assert might look like this:
assert_linked "<<a href=\"http://www.google.com>\">http://www.google.com></a>)<)<)<)<)<)<)<)", "<http://www.google.com>)<)<)<)<)<)<)<)"
(Or remove the initial call to autolink_delim
before the while
loop.)
The way emails are parsed is different (we parse forward from the @
and halt when we stop finding email-like characters), so it doesn't need the same treatment. I'll fix the test, add some more and merge this.
Thanks! :bow:
Merged in 42811262c83eab636de6832b0abc0d1509713933.
Calling autolink_delim multiple times instead of just once, until we find no more delimiters.
/cc @jcheatham @shajith
the last test is failing with this but I'm not sure why:
original commit had the iter patch in only www ... but we had to add it into url to make it work at all ...