autolink-js
autolink-js copied to clipboard
Regex misses links after \n or <br /> (ex: <br />http://google.com)
I made local changes the start of the regex
(^|\s)
to
(^|[\n\s>])
and that is catching the missing edge cases. How it reads: from the start of the string or after any \n (newline) \s (space) or >
Can you submit a PR with this change? :+1:
for sure!
This still isn't updated.
theres a fix in a PR I sent, it can be seen here https://github.com/bryanwoods/autolink-js/tree/hardy613-master (NOTE: its not the current branch)
On Tue, Dec 9, 2014 at 4:59 PM, JoshuaNovak919 [email protected] wrote:
This still isn't updated.
— Reply to this email directly or view it on GitHub https://github.com/bryanwoods/autolink-js/issues/13#issuecomment-66366134 .
Scott Hardy