mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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>[^]]+)\])"]
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue