Skip to content

Commit

Permalink
Update RandomCats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGinocchio committed Dec 21, 2024
1 parent 1620704 commit e5c8736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/general/RandomCats.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def randomcat(self,
await interaction.response.defer(ephemeral=ephemeral)

if tags != "":
tags_pattern = r"^[_,\w]+(?:,[_,\w]+)*$" # comma separated list of strings regex
tags_pattern = r"^([_,]+(?:,[_,]+)*$" # comma separated list of strings regex
assert re.match(tags_pattern, tags) if tags else True, "Tags must be a comma separated list of strings"
for tag in tags.split(','): assert tag in self.tags, f"Tag \'{tag}\' is not an available tag"

Expand Down

0 comments on commit e5c8736

Please sign in to comment.