Commit 4af11862 authored by Tristan Cavelier's avatar Tristan Cavelier

simplequery.js passes jslint now

parent a68b440b
......@@ -94,17 +94,18 @@ SimpleQuery.prototype["="] = function (object_value, comparison_value,
if (comparison_value === undefined) {
if (value === undefined) {
return true;
} else {
return false;
}
return false;
}
if (value === undefined) {
return false;
}
if (convertStringToRegExp(
comparison_value.toString(),
wildcard_character
).test(value.toString())) {
if (
convertStringToRegExp(
comparison_value.toString(),
wildcard_character
).test(value.toString())
) {
return true;
}
}
......@@ -134,17 +135,18 @@ SimpleQuery.prototype["!="] = function (object_value, comparison_value,
if (comparison_value === undefined) {
if (value === undefined) {
return false;
} else {
return true;
}
return true;
}
if (value === undefined) {
return true;
}
if (convertStringToRegExp(
comparison_value.toString(),
wildcard_character
).test(value.toString())) {
if (
convertStringToRegExp(
comparison_value.toString(),
wildcard_character
).test(value.toString())
) {
return false;
}
}
......
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