From 7cbe766bde0c3abe17e27e618e869b275e177101 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 15 Apr 2020 15:28:03 +0100 Subject: [PATCH] Utils: ParseInt should specify a radix Thanks @pmario --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index dfb70aa0c..7f00f05bb 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -806,7 +806,7 @@ exports.parseNumber = function(str) { }; exports.parseInt = function(str) { - return parseInt(str) || 0; + return parseInt(str,10) || 0; }; exports.stringifyNumber = function(num) {