diff options
Diffstat (limited to 'google-exopen.js')
-rw-r--r-- | google-exopen.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/google-exopen.js b/google-exopen.js index 4c1644a..b2436b2 100644 --- a/google-exopen.js +++ b/google-exopen.js @@ -24,10 +24,10 @@ let PLUGIN_INFO = xml` } // クエリ部の抜き出し - var q = decodeURI(url.href).match(/[?&]q=(.*?)&/); + var q = url.href.match(/[?&]q=(.*?)&/); // コマンドの引数 // foo+bar+hogeの形で取得されるので'+'を' 'で置き換え - var commandPram = q[1].replace(/\+/g,' '); + var commandPram = decodeURIComponent(q[1]).replace(/\+/g,' '); // コマンドの生成 var command = 'open ' + commandPram; |