mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 03:48:01 +00:00
Utils: ParseInt should specify a radix
Thanks @pmario
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user