From 1ee5c2ae330c0d02b48ce27470f6668a83460355 Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:19:39 +0100 Subject: [PATCH] fix(anki): allow spaces in deck name --- pyproject.toml | 2 +- src/anki/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 93b86ad..150a000 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "pdm.backend" [project] name = "typstar" -version = "1.1.0" +version = "1.1.1" description = "Neovim plugin for efficient note taking in Typst" authors = [ { name = "arne314" } diff --git a/src/anki/parser.py b/src/anki/parser.py index 21b0090..dd33158 100644 --- a/src/anki/parser.py +++ b/src/anki/parser.py @@ -35,7 +35,7 @@ ts_flashcard_query = """ ts_deck_query = """ ((comment) @deck) """ -deck_regex = re.compile(r"\W+ANKI:\s*(\S*)") +deck_regex = re.compile(r"\W+ANKI:\s*([\S ]*)") class FlashcardParser: