use label not key

This commit is contained in:
ligi 2014-04-25 15:28:25 +02:00
parent 3fdb18ec85
commit 0c30536076

View file

@ -43,7 +43,7 @@ public class PassFieldList extends ArrayList<PassField> {
public Optional<PassField> getPassFieldThatMatchesLabel(String matcher) {
for (PassField field : this) {
if (field.label != null && field.key.matches(matcher)) {
if (field.label != null && field.label.matches(matcher)) {
return Optional.of(field);
}
}