mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
fix media check with [$]{{c1::a}}{{c2::b}}[/$]
https://anki.tenderapp.com/discussions/ankidesktop/28625-cloze-deletion-in-latex-check-medias-regression-in-21
appears to have broken in e3885fd924
This commit is contained in:
parent
918c4269c6
commit
01832e1312
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
|
|||
return m.group(2)
|
||||
for ord in ords:
|
||||
s = re.sub(clozeReg%ord, qrepl, string)
|
||||
s = re.sub(clozeReg%".+?", "\\4", s)
|
||||
s = re.sub(clozeReg%".+?", "\\2", s)
|
||||
strings.append(s)
|
||||
strings.append(re.sub(clozeReg%".+?", arepl, string))
|
||||
return strings
|
||||
|
|
Loading…
Reference in a new issue