aboutsummaryrefslogtreecommitdiffstats
path: root/google-exopen.js
diff options
context:
space:
mode:
authoranekos2015-04-20 22:40:14 +0900
committeranekos2015-04-20 22:45:40 +0900
commit0d14f1360cafc44f0ac92b7f039f845cc2c00c70 (patch)
treefb0feed0d2da81d43a5b5aab0af25b1b9b6ea86a /google-exopen.js
parent9ef5e617d2bce18ebc90ba394c2b0f223a044842 (diff)
downloadvimperator-plugins-0d14f1360cafc44f0ac92b7f039f845cc2c00c70.tar.bz2
正規表現パターンを少し厳密に
Diffstat (limited to 'google-exopen.js')
-rw-r--r--google-exopen.js2
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,' ');