fix search

This commit is contained in:
Antelle 2016-01-17 15:44:37 +03:00
parent 93758d6c81
commit 0e1dcdb11b
1 changed files with 5 additions and 4 deletions

View File

@ -60,13 +60,14 @@ kdbxweb.ProtectedValue.prototype.includesLower = function(findLower) {
}
for (var i = 0; i < foundSeqs.length; i++) {
var seqIx = ++foundSeqs[i];
if (seqIx === len - 1) {
matches = true;
return;
}
if (findLower[seqIx] !== ch) {
foundSeqs.splice(i, 1);
i--;
continue;
}
if (seqIx === len - 1) {
matches = true;
return;
}
}
if (findLower[0] === ch) {