Merge pull request #505 from mouse-reeve/link-regex-parens

Work around parens in the url regex
This commit is contained in:
Mouse Reeve
2021-01-10 09:22:19 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -497,6 +497,9 @@ class Outgoing(TestCase):
self.assertEqual(
outgoing.format_links(url),
'<a href="%s">www.fish.com/</a>' % url)
self.assertEqual(
outgoing.format_links('(%s)' % url),
'(<a href="%s">www.fish.com/</a>)' % url)
url = 'https://archive.org/details/dli.granth.72113/page/n25/mode/2up'
self.assertEqual(
outgoing.format_links(url),