From 66809dd8a3386b5968ca4ca0b17301dbd155a9a3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 12 May 2020 20:53:50 +1000 Subject: [PATCH] ignore empty sound tags https://github.com/ankitects/anki/pull/612 --- rslib/src/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/text.rs b/rslib/src/text.rs index f75aed14e..63c366f8d 100644 --- a/rslib/src/text.rs +++ b/rslib/src/text.rs @@ -65,7 +65,7 @@ lazy_static! { // videos are also in sound tags static ref AV_TAGS: Regex = Regex::new( r#"(?xs) - \[sound:(.*?)\] # 1 - the filename in a sound tag + \[sound:(.+?)\] # 1 - the filename in a sound tag | \[anki:tts\] \[(.*?)\] # 2 - arguments to tts call