add missing string r flag

This commit is contained in:
ANH 2020-07-24 09:18:05 +03:00
parent da3761341e
commit fd0c3cf57e

View File

@ -1095,7 +1095,7 @@ class EditorWebView(AnkiWebView):
lines = txt.split("\n")
for line in lines:
for token in re.split("(\S+)", line):
for token in re.split(r"(\S+)", line):
# inlined data in base64?
if token.startswith("data:image/"):
processed.append(self.editor.inlinedImageToLink(token))