mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Remove unneeded condition
This commit is contained in:
parent
dee0fe2880
commit
5b43222f52
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class TagManager:
|
||||||
"Delete tags if they exist."
|
"Delete tags if they exist."
|
||||||
def wildcard(pat, str):
|
def wildcard(pat, str):
|
||||||
pat = re.escape(pat).replace('\\*', '.*')
|
pat = re.escape(pat).replace('\\*', '.*')
|
||||||
return '*' in pat and re.search(pat, str, re.IGNORECASE)
|
return re.search(pat, str, re.IGNORECASE)
|
||||||
currentTags = self.split(tags)
|
currentTags = self.split(tags)
|
||||||
for tag in self.split(deltags):
|
for tag in self.split(deltags):
|
||||||
# find tags, ignoring case
|
# find tags, ignoring case
|
||||||
|
|
Loading…
Reference in a new issue