fix regression in unused media check

This commit is contained in:
Damien Elmes 2013-11-29 02:07:31 +09:00
parent 9b02f71abf
commit 1c35a590e3

View file

@ -22,9 +22,9 @@ class MediaManager(object):
soundRegexps = ["(?i)(\[sound:(?P<fname>[^]]+)\])"]
imgRegexps = [
# src element quoted case
"(?i)(<img[^>]+ src=(?P<str>[\"'])(?P<fname>[^>]+?)(?P=str)[^>]*>)",
"(?i)(<img[^>]* src=(?P<str>[\"'])(?P<fname>[^>]+?)(?P=str)[^>]*>)",
# unquoted case
"(?i)(<img[^>]+ src=(?!['\"])(?P<fname>[^ >]+)[^>]*?>)",
"(?i)(<img[^>]* src=(?!['\"])(?P<fname>[^ >]+)[^>]*?>)",
]
regexps = soundRegexps + imgRegexps