Add dash to regex accepted characters (#4070)

master
Zaahir Moolla 2017-04-10 10:56:01 -04:00 committed by GitHub
parent 71f31f7767
commit 44278eb98c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ zci is_cached => 0;
sub count_words {
my $count = shift;
my $words_re = qr/(?:\s?\b[a-z]+\b){$count}/;
my $words_re = qr/(?:\s?\b[a-z\-]+\b){$count}/;
return test_zci(re(qr/^random passphrase: $words_re$/), structured_answer => {
data => {