summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 02:10:27 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 02:10:27 -0500
commit017f677e7047eaf607c49d7a496ce252def15ba9 (patch)
tree31e2bfb155a0c0e3042ffc886b634570332d130a
parentcbec5ffe7b6364de7a6988518ac5be6c4d660325 (diff)
downloadbot-games-017f677e7047eaf607c49d7a496ce252def15ba9.tar.gz
bot-games-017f677e7047eaf607c49d7a496ce252def15ba9.zip
i know how to use regexes, really
-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);