commit 2aff13ef1f363f89ed20b362dee7715e19145e01
parent ad3e4efbc4d6e2c6b1014949f0fcd06c9d133545
Author: Tobiasz Cudnik <tobiasz.cudnik@gmail.com>
Date: Sat, 26 Jan 2019 02:27:55 +0000
Fixed a broken ref to the operators object
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/index.js b/src/index.js
@@ -20,7 +20,7 @@ const lucene = module.exports = function compiler(query) {
// Compile combined
if (query.operator) {
- return operators[query.operator](
+ return lucene.operators[query.operator](
lucene(query.left),
lucene(query.right),
);