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
- for (var i=0, l = regexps.length; i < l; i++) {
209
- if (!index.match(regexps[i]) && (i == 0 || !longIndex.indexOf(regexps[i]))) return false;
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voloko-sdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kolesnikov