Ignore trailing dots on URLs

This commit is contained in:
Kovid Goyal 2016-12-01 16:18:17 +05:30
parent 38bf1fde3a
commit d832561f75

View File

@ -302,7 +302,7 @@ class CharGrid:
text = l.as_base_text()
for m in self.url_pat.finditer(text):
if m.start() <= x < m.end():
url = ''.join(l[i] for i in range(*m.span()))
url = ''.join(l[i] for i in range(*m.span())).rstrip('.')
if url:
open_url(url, self.opts.open_url_with)