mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 00:14:12 +01:00
add new 'urlseparator' option
This commit is contained in:
@@ -278,7 +278,7 @@ liberator.util = { //{{{
|
||||
// and returns an array ['www.google.com/search?q=bla', 'www.osnews.com']
|
||||
stringToURLArray: function (str)
|
||||
{
|
||||
var urls = str.split(/\s*\,\s+/);
|
||||
var urls = str.split(new RegExp("\s*" + liberator.options["urlseparator"] + "\s*"));
|
||||
|
||||
begin: for (var url = 0; url < urls.length; url++)
|
||||
{
|
||||
|
||||
@@ -375,6 +375,10 @@ liberator.config = { //{{{
|
||||
getService(Components.interfaces.nsIIOService2).offline;
|
||||
}
|
||||
});
|
||||
|
||||
liberator.options.add(["urlseparator"],
|
||||
"Set the separator regexp used to split URL args",
|
||||
"string", ",\\s");
|
||||
}
|
||||
//}}}
|
||||
}; //}}}
|
||||
|
||||
Reference in New Issue
Block a user