Skip to content

Commit 6e7d271

Browse files
committed
Merge with develop
2 parents d62f2c4 + 26c75dd commit 6e7d271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mapper/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function treatValue(value) {
4848
else if (value.includes('*')) return buildRegEx(value)
4949
else if (value.includes(':')) return getCompareOperator(value)
5050
else if (value === 'now') return normalizeDate(dateToString(new Date()), false)
51-
else if (parseInt(value)) return parseInt(value)
51+
else if (/^[0-9]/.test(value)) return parseInt(value)
5252
return value
5353
}
5454

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-strings-parser",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Middleware to transform query strings in a format that is recognized by the MongoDB, MySQL and other databases...",
55
"license": "MIT",
66
"main": "index.js",

0 commit comments

Comments
 (0)