diff options
| author | 2021-04-15 19:18:47 +0530 | |
|---|---|---|
| committer | 2021-04-15 19:18:47 +0530 | |
| commit | c25976c654162cd4222b1d1e1088d978971bcabb (patch) | |
| tree | b455db8577d1746d7623e7b891a8549432246eea /bot/exts/evergreen/battleship.py | |
| parent | Merge branch 'master' of https://github.com/python-discord/sir-lancebot (diff) | |
| parent | Merge pull request #679 from python-discord/vcokltfre/fix/timed-error-help (diff) | |
Update branch
Diffstat (limited to 'bot/exts/evergreen/battleship.py')
| -rw-r--r-- | bot/exts/evergreen/battleship.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/battleship.py b/bot/exts/evergreen/battleship.py index fa3fb35c..1681434f 100644 --- a/bot/exts/evergreen/battleship.py +++ b/bot/exts/evergreen/battleship.py @@ -227,7 +227,7 @@ class Game: if message.content.lower() == "surrender": self.surrender = True return True - self.match = re.match("([A-J]|[a-j]) ?((10)|[1-9])", message.content.strip()) + self.match = re.fullmatch("([A-J]|[a-j]) ?((10)|[1-9])", message.content.strip()) if not self.match: self.bot.loop.create_task(message.add_reaction(CROSS_EMOJI)) return bool(self.match) |