mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add missing string r flag
This commit is contained in:
parent
da3761341e
commit
fd0c3cf57e
1 changed files with 1 additions and 1 deletions
|
@ -1095,7 +1095,7 @@ class EditorWebView(AnkiWebView):
|
||||||
lines = txt.split("\n")
|
lines = txt.split("\n")
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
for token in re.split("(\S+)", line):
|
for token in re.split(r"(\S+)", line):
|
||||||
# inlined data in base64?
|
# inlined data in base64?
|
||||||
if token.startswith("data:image/"):
|
if token.startswith("data:image/"):
|
||||||
processed.append(self.editor.inlinedImageToLink(token))
|
processed.append(self.editor.inlinedImageToLink(token))
|
||||||
|
|
Loading…
Reference in a new issue