voloko-sdoc 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
}
|