1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:17:59 +01:00

add new 'urlseparator' option

This commit is contained in:
Doug Kearns
2008-07-20 13:06:01 +00:00
parent 8a147eb0c6
commit 706f2d0c93
5 changed files with 20 additions and 3 deletions

View File

@@ -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++)
{