aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,' ');