|
|
@@ -4,11 +4,11 @@
|
|
|
var Matcher2 = module.exports = function Matcher2(pattern, nested){
|
|
|
// File: matcher.cpp lines: 83-92
|
|
|
this._pattern = pattern;
|
|
|
+ this.parser = new MatchExpressionParser();
|
|
|
var result = this.parser.parse(pattern);
|
|
|
if (result.code != ErrorCodes.OK)
|
|
|
return {code:16810, description:"bad query: " + result};
|
|
|
this._expression = result.result;
|
|
|
- this.parser = new MatchExpressionParser();
|
|
|
}, klass = Matcher2, base = Object, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
|
|
|
|
|
|
// DEPENDENCIES
|