Commit c63df4f6 authored by Tristan Cavelier's avatar Tristan Cavelier

simplequery.js: use of undefined vars - fixed

parent 9c829cd1
/*jslint indent: 2, maxlen: 80, sloppy: true, nomen: true */ /*jslint indent: 2, maxlen: 80, sloppy: true, nomen: true */
/*global newClass: true, Query: true, convertSearchTextToRegExp: true, /*global newClass: true, Query: true,
query_class_dict: true, _export: true */ query_class_dict: true, _export: true */
/** /**
...@@ -77,7 +77,7 @@ var SimpleQuery = newClass(Query, function (spec) { ...@@ -77,7 +77,7 @@ var SimpleQuery = newClass(Query, function (spec) {
*/ */
this["="] = function (object_value, comparison_value, this["="] = function (object_value, comparison_value,
wildcard_character) { wildcard_character) {
return convertSearchTextToRegExp( return Query.convertStringToRegExp(
comparison_value.toString(), comparison_value.toString(),
wildcard_character || "%" wildcard_character || "%"
).test(object_value.toString()); ).test(object_value.toString());
...@@ -94,7 +94,7 @@ var SimpleQuery = newClass(Query, function (spec) { ...@@ -94,7 +94,7 @@ var SimpleQuery = newClass(Query, function (spec) {
*/ */
this["!="] = function (object_value, comparison_value, this["!="] = function (object_value, comparison_value,
wildcard_character) { wildcard_character) {
return !convertSearchTextToRegExp( return !Query.convertStringTextToRegExp(
comparison_value.toString(), comparison_value.toString(),
wildcard_character || "%" wildcard_character || "%"
).test(object_value.toString()); ).test(object_value.toString());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment