Teach SafeHtml.linkify() to ignore trailing ">"
Because we are running linkify on the HTML safe URL, a string
such as "<http://foo>" is actually appearing to our regex as the
string "<http://foo>". As ">" is a valid sequence of URL
characters we were pulling the ">" into the URL, when in fact
our intent was to leave it out.
We now skip "<" and ">" within a URL, as these are meant to
be read by the browser after parsing as "<" and ">", and these are
not considered to be part of the URL.
Signed-off-by: Shawn O. Pearce <firstname.lastname@example.org>
1 file changed