*Actually* add re.I to make "bug N" case-insensitive...
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 11 Mar 2013 11:12:57 -0400
changeset 35 7fdde44ee633
parent 34 58a50f7635c2
child 36 aad604d5dd52
push id30
push userbsmedberg@mozilla.com
push date2013-03-11 15:13 +0000
*Actually* add re.I to make "bug N" case-insensitive...
weeklyupdates/post.py
--- a/weeklyupdates/post.py
+++ b/weeklyupdates/post.py
@@ -1,17 +1,17 @@
 import datetime
 from genshi.filters import HTMLSanitizer
 from genshi.input import HTML, ParseError
 import markdown2
 import re
 
 link_patterns = (
     (re.compile(r'(https?://.*?(?=[\s\]\)\|]))', re.I), r'\1'),
-    (re.compile(r'bug[\s:#]+(\d{3,7})\b'), r'https://bugzilla.mozilla.org/show_bug.cgi?id=\1'),
+    (re.compile(r'bug[\s:#]+(\d{3,7})\b', re.I), r'https://bugzilla.mozilla.org/show_bug.cgi?id=\1'),
 )
 
 md = markdown2.Markdown(html4tags=True, tab_width=2,
                         extras=['link-patterns',
                                 'cuddled-lists'],
                         link_patterns=link_patterns)
 
 class Post(object):