From d85db4777cc72cfd5771766defd368d394281797 Mon Sep 17 00:00:00 2001 From: hogelog Date: Sun, 5 Oct 2008 06:35:07 +0000 Subject: * "010"のような番号が8進数と認識される問題の修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@20772 d0d07461-0603-4401-acd4-de1884942a52 --- incuri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'incuri.js') diff --git a/incuri.js b/incuri.js index 35f130f..7b9679d 100644 --- a/incuri.js +++ b/incuri.js @@ -45,7 +45,7 @@ arg = arg.arguments[0]; let num = RegExp.$2; let quantity = !arg || isNaN(arg) ? 1 : parseInt(arg); - let nextnum = numstr(f(parseInt(num), quantity), num.length); + let nextnum = numstr(f(parseInt(num, 10), quantity), num.length); let newpart = RegExp.$1 + nextnum + RegExp.$3; if(p == "href") { window.content.location.href = newpart; -- cgit v1.2.3