mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
more robust img regexp
This commit is contained in:
parent
7ce661ac63
commit
525f44c9c5
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ from anki.utils import checksum, genID
|
|||
from anki.lang import _
|
||||
|
||||
regexps = ("(\[sound:([^]]+)\])",
|
||||
"(<img src=[\"']?([^\"'>]+)[\"']? ?/?>)")
|
||||
"(<img[^>]+src=[\"']?([^\"'>]+)[\"']?[^>]?)")
|
||||
|
||||
# Tables
|
||||
##########################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue