Skip to content

Commit 4390a11

Browse files
Accepting querystring of numbers starting with 0 (zero).
1 parent 7d6eb90 commit 4390a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mapper/filters.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +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 (/^\d*$/.test(value) && (parseInt(value).toString().length !== value.length)) return value
5152
else if (/^\d*$/.test(value)) return parseInt(value)
5253
return value
5354
}

0 commit comments

Comments
 (0)