mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix bug in tag deletion
https://anki.tenderapp.com/discussions/ankidesktop/30146-removing-single-letter-tags-also-removes-any-other-tags-with-the-letter
This commit is contained in:
parent
943863d463
commit
5907629406
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class TagManager:
|
|||
"Delete tags if they exist."
|
||||
def wildcard(pat, str):
|
||||
pat = re.escape(pat).replace('\\*', '.*')
|
||||
return re.search(pat, str, re.IGNORECASE)
|
||||
return re.match("^"+pat+"$", str, re.IGNORECASE)
|
||||
currentTags = self.split(tags)
|
||||
for tag in self.split(deltags):
|
||||
# find tags, ignoring case
|
||||
|
|
Loading…
Reference in a new issue