Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}}
- Loading branch information