1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Utils: ParseInt should specify a radix

Thanks @pmario
This commit is contained in:
Jeremy Ruston 2020-04-15 15:28:03 +01:00
parent f21d013241
commit 7cbe766bde

View File

@ -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) {