ignore empty sound tags

https://github.com/ankitects/anki/pull/612
This commit is contained in:
Damien Elmes 2020-05-12 20:53:50 +10:00
parent 436bdd6970
commit 66809dd8a3

View file

@ -65,7 +65,7 @@ lazy_static! {
// videos are also in sound tags // videos are also in sound tags
static ref AV_TAGS: Regex = Regex::new( static ref AV_TAGS: Regex = Regex::new(
r#"(?xs) r#"(?xs)
\[sound:(.*?)\] # 1 - the filename in a sound tag \[sound:(.+?)\] # 1 - the filename in a sound tag
| |
\[anki:tts\] \[anki:tts\]
\[(.*?)\] # 2 - arguments to tts call \[(.*?)\] # 2 - arguments to tts call