summaryrefslogtreecommitdiffstats
path: root/lib/Games/Word.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Games/Word.pm')
-rw-r--r--lib/Games/Word.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Games/Word.pm b/lib/Games/Word.pm
index 43aaae7..f721afb 100644
--- a/lib/Games/Word.pm
+++ b/lib/Games/Word.pm
@@ -196,6 +196,7 @@ sub is_substring {
my ($substring, $string) = @_;
return 1 if $substring eq '';
+ return 0 if $string eq '';
my $re = join('?', map { quotemeta } split(//, $string)) . '?';
return $substring =~ $re;
}