1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-29 00:03:34 +01:00

That was kind of obvious, really...

This commit is contained in:
Kris Maglione
2014-08-16 21:20:03 -07:00
parent 54568d5f82
commit 2660aca330

View File

@@ -699,7 +699,7 @@ var Bookmarks = Module("bookmarks", {
let query = item.url.substring(begin.length, rest); let query = item.url.substring(begin.length, rest);
if (item.url.substr(rest) == end && query.contains("&")) if (item.url.substr(rest) == end && query.contains("&"))
try { try {
item.url = decodeURIComponent(query.replace(/#.*/, "").replace(/\+/g, " ")); item.url = decodeURIComponent(query.replace(/[&#].*/, "").replace(/\+/g, " "));
return item; return item;
} }
catch (e) {} catch (e) {}