mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Don't repeat Python regex docs
This commit is contained in:
parent
2d2f21bfe3
commit
5ff0547110
1 changed files with 1 additions and 3 deletions
|
@ -4,9 +4,7 @@ from typing import Any, Callable, Dict, Pattern
|
||||||
from anki.hooks import runFilter
|
from anki.hooks import runFilter
|
||||||
from anki.utils import stripHTML, stripHTMLMedia
|
from anki.utils import stripHTML, stripHTMLMedia
|
||||||
|
|
||||||
# The (?si) flags make the regex match case-insensitively and make . match any
|
# Matches a {{c123::clozed-out text::hint}} Cloze deletion, case-insensitively.
|
||||||
# character including newlines.
|
|
||||||
# See: https://docs.python.org/3/howto/regex.html#compilation-flags
|
|
||||||
clozeReg = r"(?si)\{\{(c)%s::(.*?)(::(.*?))?\}\}"
|
clozeReg = r"(?si)\{\{(c)%s::(.*?)(::(.*?))?\}\}"
|
||||||
|
|
||||||
modifiers: Dict[str, Callable] = {}
|
modifiers: Dict[str, Callable] = {}
|
||||||
|
|
Loading…
Reference in a new issue