Skip to content

Commit

Permalink
Merge pull request #129 from ajstewart/dev
Browse files Browse the repository at this point in the history
Release v1.1.2
  • Loading branch information
ajstewart authored Oct 7, 2023
2 parents 1dd6305 + 9e4c885 commit 823b8c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from cogs.utils.checks import check_admin
from cogs.utils.utils import get_logger, get_prefix

__version__ = "1.1.1"
__version__ = "1.1.2"
DOCS_URL = "placeholder"


Expand Down
2 changes: 1 addition & 1 deletion cogs/utils/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def check_for_friend_code(content: str) -> bool:
Returns:
'True' when the message contains a friend code. 'False' if not.
"""
pattern = re.compile(r"\d{4}.*\d{4}.*\d{4}(?!(\d*\>))")
pattern = re.compile(r"\d{4}.{0,2}\d{4}.{0,2}\d{4}(?!(\d*\>))")
content = snorlax_utils.strip_mentions(content)
content = snorlax_utils.strip_url(content)
match = re.search(pattern, content)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "officer-snorlax-bot"
version = "1.1.1"
version = "1.1.2"
description = "Officer Snorlax Discord bot created to open and close channels on a schedule."
authors = ["Adam Stewart"]
license = "MIT"
Expand Down

0 comments on commit 823b8c7

Please sign in to comment.