Skip to content

Commit 663545c

Browse files
committed
Remove 0 as a default for invalid numeric values
1 parent eb92e9f commit 663545c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function parsePrimitive(info, name, value) {
4848
}
4949

5050
if (info.numeric || info.positiveNumeric) {
51-
if (!isNaN(result)) {
51+
if (!isNaN(result) && result !== '') {
5252
result = Number(result);
5353
}
5454
} else if (info.boolean || info.overloadedBoolean) {

0 commit comments

Comments
 (0)