aboutsummaryrefslogtreecommitdiffstats
path: root/account_switcher.js
diff options
context:
space:
mode:
authormasa1382009-10-08 19:39:06 +0000
committermasa1382009-10-08 19:39:06 +0000
commitf816507c3915d71fcb67c94033ae15af9d9902c0 (patch)
treed89509f5550221a630fbb4132ef231342218cdf5 /account_switcher.js
parent06e53642233ddf28137140e04626568534b30c48 (diff)
downloadvimperator-plugins-f816507c3915d71fcb67c94033ae15af9d9902c0.tar.bz2
Fix RegExp pattern
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35552 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'account_switcher.js')
-rw-r--r--account_switcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/account_switcher.js b/account_switcher.js
index 8567103..4573611 100644
--- a/account_switcher.js
+++ b/account_switcher.js
@@ -170,7 +170,7 @@ liberator.accountSwitcherOpenNewTab = 1;
if (value.indexOf('=') > 0) {
params.push(value);
} else {
- res.responseText.match(new RegExp('(<.*\\bname=\"' + value + '\".*?>)'));
+ res.responseText.match(new RegExp('(<[\\S\\s]*?name=\"' + value + '\"[\\S\\s]*?>)'));
RegExp.$1.match(/value=\"([a-zA-Z0-9-_]+)\"/);
params.push(value + '=' + encodeURIComponent(RegExp.$1));
}