mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-24 06:13:17 +00:00
Utils: ParseInt should specify a radix
Thanks @pmario
This commit is contained in:
parent
f21d013241
commit
7cbe766bde
|
@ -806,7 +806,7 @@ exports.parseNumber = function(str) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.parseInt = function(str) {
|
exports.parseInt = function(str) {
|
||||||
return parseInt(str) || 0;
|
return parseInt(str,10) || 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.stringifyNumber = function(num) {
|
exports.stringifyNumber = function(num) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user