1
0
Fork 0

minor fixes in gharial and ahuacatl

This commit is contained in:
scottashton 2014-07-09 14:43:06 +02:00
parent b0722d9981
commit 267c8ba451
2 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,7 @@
if (testee === undefined) { if (testee === undefined) {
return deflt || false; return deflt || false;
} }
return testee.toLowerCase() === "true"; return testee.toLowerCase() === "true" || testee === "1";
}, },
buildError = function(err, code) { buildError = function(err, code) {
return { return {

View File

@ -4773,6 +4773,9 @@ function FILTER_RESTRICTION (list, restrictionList) {
function DOCUMENTS_BY_EXAMPLE (collectionList, example) { function DOCUMENTS_BY_EXAMPLE (collectionList, example) {
var res = []; var res = [];
if (example === "null") {
example = [{}];
}
if (!example) { if (!example) {
example = [{}]; example = [{}];
} }