mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix regression in unused media check
This commit is contained in:
parent
9b02f71abf
commit
1c35a590e3
1 changed files with 2 additions and 2 deletions
|
@ -22,9 +22,9 @@ class MediaManager(object):
|
||||||
soundRegexps = ["(?i)(\[sound:(?P<fname>[^]]+)\])"]
|
soundRegexps = ["(?i)(\[sound:(?P<fname>[^]]+)\])"]
|
||||||
imgRegexps = [
|
imgRegexps = [
|
||||||
# src element quoted case
|
# src element quoted case
|
||||||
"(?i)(<img[^>]+ src=(?P<str>[\"'])(?P<fname>[^>]+?)(?P=str)[^>]*>)",
|
"(?i)(<img[^>]* src=(?P<str>[\"'])(?P<fname>[^>]+?)(?P=str)[^>]*>)",
|
||||||
# unquoted case
|
# unquoted case
|
||||||
"(?i)(<img[^>]+ src=(?!['\"])(?P<fname>[^ >]+)[^>]*?>)",
|
"(?i)(<img[^>]* src=(?!['\"])(?P<fname>[^ >]+)[^>]*?>)",
|
||||||
]
|
]
|
||||||
regexps = soundRegexps + imgRegexps
|
regexps = soundRegexps + imgRegexps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue