robinst/autolink-java

Don't autolink if authority is only "end" characters

robinst opened this issue · 2 comments

See commonmark/commonmark-java#99, the following examples should not result in any links:

http://.
http://"
http://<space>

Note that http:// and http://. are valid URLs according to RFC 3986, because authority can be zero or more unreserved characters. But we don't autolink http:// on its own or the trailing . of http://example.org.

Pushed a fix, but keeping this open until I've released it.