From f8c6300e2787d8be3f28469da47987ab6dc7c571 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Tue, 12 May 2020 12:43:35 -0300 Subject: [PATCH] Also fix legacy.py::anki.sound._soundReg accepting empty tags --- qt/aqt/legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/legacy.py b/qt/aqt/legacy.py index 8c11c1d28..d13e3a8aa 100644 --- a/qt/aqt/legacy.py +++ b/qt/aqt/legacy.py @@ -41,6 +41,6 @@ def fmtTimeSpan(time, pad=0, point=0, short=False, inTime=False, unit=99): def install_pylib_legacy() -> None: anki.utils.bodyClass = bodyClass # type: ignore anki.utils.fmtTimeSpan = fmtTimeSpan # type: ignore - anki.sound._soundReg = r"\[sound:(.*?)\]" # type: ignore + anki.sound._soundReg = r"\[sound:(.+?)\]" # type: ignore anki.sound.allSounds = allSounds # type: ignore anki.sound.stripSounds = stripSounds # type: ignore