Password: Splitting into 2x regexes
parent
34cf88394a
commit
a4b5448035
|
@ -11,10 +11,9 @@ zci is_cached => 0;
|
||||||
|
|
||||||
sub build_test {
|
sub build_test {
|
||||||
my ($chars, $strength) = @_;
|
my ($chars, $strength) = @_;
|
||||||
my $answer = re(qr/^.{$chars}/);
|
return test_zci(re(qr/^.{$chars} \(random password\)/), structured_answer => {
|
||||||
return test_zci($answer, structured_answer => {
|
|
||||||
data => {
|
data => {
|
||||||
title => $answer,
|
title => re(qr/^.{$chars}$/),
|
||||||
subtitle => "Random password: $chars characters, $strength strength"
|
subtitle => "Random password: $chars characters, $strength strength"
|
||||||
},
|
},
|
||||||
templates => {
|
templates => {
|
||||||
|
|
Loading…
Reference in New Issue