Damien Elmes 2018-10-07 18:21:51 +10:00
parent 943863d463
commit 5907629406

View File

@ -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