summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Ghost.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Ghost.pm')
-rw-r--r--lib/Bot/Games/Game/Ghost.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 64e742e..f9b3552 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -57,7 +57,7 @@ augment turn => sub {
return "You must respond to " . $self->challenger . "'s challenge!"
if $self->has_challenger;
return "$state isn't a valid move!"
- unless $state =~ /a-z/i && $self->valid_move($state);
+ unless $state =~ /[a-z]/i && $self->valid_move($state);
$self->current_player($self->next_player);
return $self->state($state);