Anagram: Tell the user if we found no anagrams.
parent
334f504f3c
commit
8d25f5c0dc
|
@ -121,7 +121,7 @@ handle remainder => sub {
|
|||
my @chars = shuffle split (//, $word);
|
||||
$w = join '', @chars;
|
||||
} while ($w eq $word);
|
||||
return $word, html => html_output ("\"$word\" scrambled", $w);
|
||||
return $word, html => html_output ("Sorry, we found no anagrams for \"$word\". We scrambled it for you:", $w);
|
||||
}
|
||||
|
||||
my $response = join ', ', @output;
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
}
|
||||
|
||||
.zci--anagrams .text--secondary {
|
||||
font-weight: 400;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue