From 1e2c48358dd023936e44e73a50a50d0dbc5c1356 Mon Sep 17 00:00:00 2001 From: drry Date: Sun, 14 Dec 2008 11:18:33 +0000 Subject: * fixed a regex. * et cetera. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26673 d0d07461-0603-4401-acd4-de1884942a52 --- foxytunes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'foxytunes.js') diff --git a/foxytunes.js b/foxytunes.js index 2492729..a7fa57d 100644 --- a/foxytunes.js +++ b/foxytunes.js @@ -1,8 +1,8 @@ var PLUGIN_INFO = Foxy Tunes - for Foxy Tunes - for Foxy Tunes + for FoxyTunes + for FoxyTunes 1.2 anekos 2.0pre @@ -26,14 +26,14 @@ var PLUGIN_INFO = (function () { - // $B>e$9$h(B + // 上手い具合に病数に直すよ function fromTimeCode (code) { let m; function sign (s, v) (s == '-' ? -v : v); if (m = code.match(/^([-+])?(\d+):(\d+)$/)) return sign(m[1], parseInt(m[2]) * 60 + parseInt(m[3])); - if (m = code.match(/^([-+])?(\d+.\d+)$/)) + if (m = code.match(/^([-+])?(\d+\.\d+)$/)) return sign(m[1], parseFloat(m[2]) * 60); return parseInt(code); } @@ -70,7 +70,7 @@ var PLUGIN_INFO = })(); /* - foxytunes $B$,(B window $B$K@_CV$9$k4X?t$N?t!9!D(B + FoxyTunes が window に設置する関数の数々… gFoxytunesYMPPageAnalyzer FoxyTunesHTMLTooltip FoxyTunesTooltipInfo -- cgit v1.2.3