*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 7fdde44ee633955827d3ef4066ae2a88b4a4b292
parent 34 58a50f7635c2a8ea793a55dc86555cac3b27b118
child 36 aad604d5dd52a8c907a317f1faebf24cf952779b
push id30
push userbsmedberg@mozilla.com
push dateMon, 11 Mar 2013 15:13:02 +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):