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:
Damien Elmes 2018-06-28 13:11:04 +10:00
parent 918c4269c6
commit 01832e1312

View file

@ -224,7 +224,7 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
return m.group(2) return m.group(2)
for ord in ords: for ord in ords:
s = re.sub(clozeReg%ord, qrepl, string) s = re.sub(clozeReg%ord, qrepl, string)
s = re.sub(clozeReg%".+?", "\\4", s) s = re.sub(clozeReg%".+?", "\\2", s)
strings.append(s) strings.append(s)
strings.append(re.sub(clozeReg%".+?", arepl, string)) strings.append(re.sub(clozeReg%".+?", arepl, string))
return strings return strings