diff options
Diffstat (limited to 'account_switcher.js')
-rw-r--r-- | account_switcher.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/account_switcher.js b/account_switcher.js index 4ad1caa..5678759 100644 --- a/account_switcher.js +++ b/account_switcher.js @@ -1,4 +1,4 @@ -var PLUGIN_INFO = +var PLUGIN_INFO = xml` <VimperatorPlugin> <name>{NAME}</name> <description>Switch account easily.</description> @@ -50,7 +50,7 @@ liberator.accountSwitcherOpenNewTab = 1; ||< ]]></detail> -</VimperatorPlugin>; +</VimperatorPlugin>`; (function(){ var services = []; var accounts = []; @@ -180,7 +180,7 @@ liberator.accountSwitcherOpenNewTab = 1; if (value.indexOf('=') > 0) { params.push(value); } else { - res.responseText.match(new RegExp('<([^<>]*?name=\"' + value + '\"[^<>]*?)>')); + res.responseText.match(new RegExp('<([^`]*?name=\"' + value + '\"[^`]*?)>')); RegExp.$1.match(/value=\"([\w-]+)\"/); params.push(value + '=' + encodeURIComponent(RegExp.$1)); } |