Skip to content

Commit 03bcb34

Browse files
author
Lucas Rocha
committed
Fixing filters bug for validation numbers
1 parent 26c75dd commit 03bcb34

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 (/^[0-9]/.test(value)) return parseInt(value)
51+
else if (/^\d*$/.test(value)) return parseInt(value)
5252
return value
5353
}
5454

0 commit comments

Comments
 (0)