voloko-sdoc 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -205,8 +205,9 @@ Searchdoc.Searcher.prototype = new function() {
|
|
205
205
|
}
|
206
206
|
|
207
207
|
function matchPassRegexp(index, longIndex, queries, regexps) {
|
208
|
-
|
209
|
-
|
208
|
+
if (!index.match(regexps[0])) return false;
|
209
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
210
|
+
if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
|
210
211
|
};
|
211
212
|
return true;
|
212
213
|
}
|