Skip to content

Commit 6b9d294

Browse files
authored
Merge pull request #541 from Kitware/fix-url-extract
fix(URLExtract): Native type convertion issue
2 parents be5f55b + 5baeb6d commit 6b9d294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Common/Core/URLExtract/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ function toNativeType(str) {
1111
return false;
1212
} else if (str === undefined || str === 'undefined') {
1313
return undefined;
14-
} else if (str === '' || Number.isNaN(str)) {
14+
} else if (str === '' || Number.isNaN(Number(str))) {
1515
return str;
1616
}
17-
return parseFloat(str);
17+
return Number(str);
1818
}
1919

2020
function extractURLParameters(

0 commit comments

Comments
 (0)