Skip to content
Browse files

simplify the brain-damaged iferror_rx regular expression

fixes issue #10

shame on me
  • Loading branch information...
1 parent eaba6db commit aa987c281c10e29f26aa0faa21c04f3bb1167fde @schmir schmir committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mwlib/templ/magics.py
View
2 mwlib/templ/magics.py
@@ -16,7 +16,7 @@
from mwlib.log import Log
from mwlib import expr
-iferror_rx = re.compile(r'<(div|span|p|strong)\s([^<>]*\s)*?class="error"[^<>]*>', re.I)
+iferror_rx = re.compile(r'<(div|span|p|strong)\s[^<>]*class="error"[^<>]*>', re.I)
log = Log("expander")

0 comments on commit aa987c2

Please sign in to comment.
Something went wrong with that request. Please try again.