Handle URLs wrapped with quotes in changelog messages. The quotes are not part of...
authorRobin H. Johnson <robbat2@gentoo.org>
Thu, 19 Jan 2012 23:50:09 +0000 (15:50 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Thu, 19 Jan 2012 23:50:09 +0000 (15:50 -0800)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
web/lib/changelog_formatter.py

index 76a6661..35dc5d7 100644 (file)
@@ -47,8 +47,8 @@ re_email2 = re.compile(r'([^@ ]+)@gentoo.org')
 re_file = re.compile(r'([\+-]?)(\S+)([:,]|[:,]$)')
 re_bugid = re.compile(r'([Bb][uU][gG]\s+?#?)(\d+)')
 re_url_base = '(https?://[^\s/)>]+(?:/[\S]+)?)'
-re_url = re.compile("([\s<(]*)"+re_url_base+"([\s>)]+?.?|$)?")
-re_url_notend = re.compile(r'[\s.)>]+$')
+re_url = re.compile("([\s<(]*)"+re_url_base+"([\s>)\"']+?.?|$)?")
+re_url_notend = re.compile(r'[\s.)>\'"]+$')
 def _pretty_changelog_pass1(cat, pn, changelog):
     """Changelog prettification, pass1: replace text with markers"""