mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +01:00
Use the RegExp global function rather than calling the constructor.
This commit is contained in:
@@ -475,7 +475,7 @@ const util = { //{{{
|
||||
// and returns an array ['www.google.com/search?q=bla', 'www.osnews.com']
|
||||
stringToURLArray: function stringToURLArray(str)
|
||||
{
|
||||
let urls = str.split(new RegExp("\s*" + options["urlseparator"] + "\s*"));
|
||||
let urls = str.split(RegExp("\s*" + options["urlseparator"] + "\s*"));
|
||||
|
||||
return urls.map(function (url) {
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user