aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-12-08 19:32:28 +0100
committerGravatar GitHub <[email protected]>2021-12-08 19:32:28 +0100
commit18695fa098bf2968f2dc294568a33b2397bcddec (patch)
treeee265160859cc2fb95026307e175cebbbc9c156b
parentMerge pull request #1539 from Numerlor/site-tags (diff)
parentReduce threshold before fuzzy matching to 2 (diff)
Merge pull request #1997 from python-discord/reduce-fuzzy-match-len
Reduce threshold before fuzzy matching to 2
-rw-r--r--bot/exts/info/tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py
index 7c8d378a9..e5930a433 100644
--- a/bot/exts/info/tags.py
+++ b/bot/exts/info/tags.py
@@ -168,11 +168,11 @@ class Tags(Cog):
"""Get tags with identifiers similar to `tag_identifier`."""
suggestions = []
- if tag_identifier.group is not None and len(tag_identifier.group) >= 3:
+ if tag_identifier.group is not None and len(tag_identifier.group) >= 2:
# Try fuzzy matching with only a name first
suggestions += self._get_suggestions(TagIdentifier(None, tag_identifier.group))
- if len(tag_identifier.name) >= 3:
+ if len(tag_identifier.name) >= 2:
suggestions += self._get_suggestions(tag_identifier)
return suggestions