From f816507c3915d71fcb67c94033ae15af9d9902c0 Mon Sep 17 00:00:00 2001 From: masa138 Date: Thu, 8 Oct 2009 19:39:06 +0000 Subject: Fix RegExp pattern git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35552 d0d07461-0603-4401-acd4-de1884942a52 --- account_switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'account_switcher.js') 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)); } -- cgit v1.2.3