Password: Tabs to spaces

master
Rob 2016-05-23 17:34:36 +01:00
parent ba804de6d1
commit 34cf88394a
2 changed files with 18 additions and 18 deletions

View File

@ -83,13 +83,13 @@ handle remainder => sub {
# Add password for display.
return "$pw_string (random password)", structured_answer => {
data => {
title => $pw_string,
subtitle => "Random password: $pw_length characters, $pw_strength strength"
},
templates => {
group => 'text'
}
data => {
title => $pw_string,
subtitle => "Random password: $pw_length characters, $pw_strength strength"
},
templates => {
group => 'text'
}
};
};

View File

@ -10,17 +10,17 @@ zci answer_type => 'pw';
zci is_cached => 0;
sub build_test {
my ($chars, $strength) = @_;
my $answer = re(qr/^.{$chars}/);
return test_zci($answer, structured_answer => {
data => {
title => $answer,
subtitle => "Random password: $chars characters, $strength strength"
},
templates => {
group => 'text'
}
});
my ($chars, $strength) = @_;
my $answer = re(qr/^.{$chars}/);
return test_zci($answer, structured_answer => {
data => {
title => $answer,
subtitle => "Random password: $chars characters, $strength strength"
},
templates => {
group => 'text'
}
});
}
ddg_goodie_test(