mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #619 from evandroforks/fix_empty_sound_tags
Also fix legacy.py::anki.sound._soundReg accepting empty tags
This commit is contained in:
commit
e323a8f902
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue