Skip to content

Commit

Permalink
give null special treatment (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys authored Aug 30, 2016
1 parent 68a3a75 commit 9da618e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/keen-query/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ function transformValue (value, handleList) {
if (/^("|'').*\1$/.test(value)) {
return value.substr(1, value.length - 2)
}

if (value === 'true') {
return true;
} else if (value === 'false') {
return false;
} else if (value === 'null') {
return null;
}

const asNumber = Number(value);
Expand Down
1 change: 1 addition & 0 deletions test/url-generation.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9da618e

Please sign in to comment.