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
@ -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 New Issue
Block a user