anki/anki
Dave Shifflett 643ec35449 Use alternate pattern match during field changes
When a user renames or deletes a field, Anki tries to go through the
user's templates to substitute occurrences of that field name with its
new name or remove the field.

However, if the user has multiple Mustache placeholders on a single
line, this does not work as intended because the leading (.*) capture
group grabs the text in-between the two (or more) Mustache placeholders.

Examples:

    {{#Flag}}
        ...
    {{/Flag}}{{^Flag}}
        ...
    {{/Flag}}

or

    {{Front}} {{#Flag}}...{{/Flag}}

or

    {{Front}} Hello. {{Victim}}
2014-12-29 20:09:09 -06:00
..
importing make sure we set usn when pulling in dconf from apkg 2014-10-08 12:54:30 +09:00
template don't fail if \n in cloze 2014-04-21 14:50:18 +09:00
__init__.py bump version 2014-10-19 17:00:26 +09:00
anki optimize imports 2012-12-22 09:17:10 +09:00
ankiweb.certs bump version again, as new cert was missing an intermediate 2014-04-12 15:54:25 +09:00
cards.py make sure we reset odue when rescheduling as new 2013-11-17 16:03:58 +09:00
collection.py be explicit about modSchema()'s check flag 2014-11-03 16:28:12 +09:00
consts.py split media and regular server urls 2014-07-08 11:16:51 +09:00
db.py catch invalid temp folder and other tweaks 2013-10-22 15:30:53 +09:00
decks.py be explicit about modSchema()'s check flag 2014-11-03 16:28:12 +09:00
errors.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
exporting.py Merge branch 'master' of git://github.com/sobjornstad/anki into sobjornstad-master 2014-06-29 04:07:00 +09:00
find.py add support for ideographic space in card search browser 2014-07-03 18:44:35 +02:00
hooks.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
js.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
lang.py about about and available languages 2013-08-22 15:54:33 +09:00
latex.py comment out high-dpi+transparent latex example 2014-10-09 18:12:25 +09:00
media.py unquote does need utf8, but we need to convert back to unicode after 2014-08-05 12:59:31 +09:00
models.py Use alternate pattern match during field changes 2014-12-29 20:09:09 -06:00
notes.py tweak logging 2013-10-30 22:42:32 +09:00
sched.py fix empty search in filtered deck 2014-06-03 17:54:15 +09:00
sound.py use default sample rate instead of forcing 44100 2014-04-18 04:17:05 +09:00
stats.py allow better translations of added cards statistics 2014-08-28 08:16:12 +02:00
statsbg.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
stdmodels.py fix inconsistency in default note type names 2014-10-23 14:28:26 -05:00
storage.py be explicit about modSchema()'s check flag 2014-11-03 16:28:12 +09:00
sync.py cont should be checked befoer any further processing 2014-11-06 16:56:16 +09:00
tags.py accept ideographic space as tag separator 2014-08-14 10:51:43 -05:00
upgrade.py fix upgrading of latex references 2013-05-22 09:46:09 +09:00
utils.py make sure temp folder hasn't been deleted since creation 2014-06-24 14:50:39 -05:00