diff options
author | anekos | 2015-04-20 22:40:14 +0900 |
---|---|---|
committer | anekos | 2015-04-20 22:45:40 +0900 |
commit | 0d14f1360cafc44f0ac92b7f039f845cc2c00c70 (patch) | |
tree | fb0feed0d2da81d43a5b5aab0af25b1b9b6ea86a /google-exopen.js | |
parent | 9ef5e617d2bce18ebc90ba394c2b0f223a044842 (diff) | |
download | vimperator-plugins-0d14f1360cafc44f0ac92b7f039f845cc2c00c70.tar.bz2 |
正規表現パターンを少し厳密に
Diffstat (limited to 'google-exopen.js')
-rw-r--r-- | google-exopen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/google-exopen.js b/google-exopen.js index bb345b5..4c1644a 100644 --- a/google-exopen.js +++ b/google-exopen.js @@ -24,7 +24,7 @@ let PLUGIN_INFO = xml` } // クエリ部の抜き出し - var q = decodeURI(url.href).match(/q=(.*?)&/); + var q = decodeURI(url.href).match(/[?&]q=(.*?)&/); // コマンドの引数 // foo+bar+hogeの形で取得されるので'+'を' 'で置き換え var commandPram = q[1].replace(/\+/g,' '); |