From 5ff05471104f44fd4edc1f2e7eac4481871df9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Pokorn=C3=BD=20=28Rai=29?= Date: Sun, 22 Dec 2019 12:43:15 +0100 Subject: [PATCH] Don't repeat Python regex docs --- anki/template/template.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/anki/template/template.py b/anki/template/template.py index f867db33b..3c4d4b407 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -4,9 +4,7 @@ from typing import Any, Callable, Dict, Pattern from anki.hooks import runFilter from anki.utils import stripHTML, stripHTMLMedia -# The (?si) flags make the regex match case-insensitively and make . match any -# character including newlines. -# See: https://docs.python.org/3/howto/regex.html#compilation-flags +# Matches a {{c123::clozed-out text::hint}} Cloze deletion, case-insensitively. clozeReg = r"(?si)\{\{(c)%s::(.*?)(::(.*?))?\}\}" modifiers: Dict[str, Callable] = {}