Also fix legacy.py::anki.sound._soundReg accepting empty tags

This commit is contained in:
evandrocoan 2020-05-12 12:43:35 -03:00
parent 85b28f13d2
commit f8c6300e27

View file

@ -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