Skip to content

Commit 37575e2

Browse files
author
Lucas Rocha
committed
Solving bug in treatment of integer values.
1 parent eb9b70b commit 37575e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)