Password: Splitting into 2x regexes

master
Rob 2016-05-23 22:09:36 +01:00
parent 34cf88394a
commit a4b5448035
1 changed files with 2 additions and 3 deletions

View File

@ -11,10 +11,9 @@ zci is_cached => 0;
sub build_test {
my ($chars, $strength) = @_;
my $answer = re(qr/^.{$chars}/);
return test_zci($answer, structured_answer => {
return test_zci(re(qr/^.{$chars} \(random password\)/), structured_answer => {
data => {
title => $answer,
title => re(qr/^.{$chars}$/),
subtitle => "Random password: $chars characters, $strength strength"
},
templates => {