diff --git a/anki/models.py b/anki/models.py index 4f4a99dfb..8ede3a643 100644 --- a/anki/models.py +++ b/anki/models.py @@ -541,7 +541,7 @@ select id from notes where mid = ?)""" % " ".join(map), continue ord = map[fname][0] ords.update([int(m)-1 for m in re.findall( - "{{c(\d+)::[^}]*?}}", sflds[ord])]) + "{{c(\d+)::.+?}}", sflds[ord])]) if -1 in ords: ords.remove(-1) if not ords and allowEmpty: