Teach SafeHtml.linkify() to honor RFC 1738 and to skip trailing ")"

By using a more faithful regexp to the RFC 1738 documentation
we automatically handle <http://foo> style links better, by not
including the leading/trailing <>, as these are not valid in a URL
unless they are escaped.

Although RFC 1738 says "(" and ")" are valid in a URL, we skip the
trailing ")" if present, assuming the reference was embedded inside
a comment, such as "blah blah ... (See also http://foo)".

Bug: GERRIT-108
Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed
tree: e4b9a3376d61030111c723b6c393addea232ccc4
  1. .gitignore
  2. .settings/
  3. COPYING
  4. pom.xml
  5. src/