mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 01:22:33 +02:00
":set urloperator=" will turn off splitting
used to go into infinite loop
This commit is contained in:
1 parent
25f2695ee2
commit
4a70d7c097
2 files changed
+8
-2
No files matched your search
@@ -625,7 +625,12 @@ const util = { //{{{
|
||||
*/
|
||||
stringToURLArray: function stringToURLArray(str)
|
||||
{
|
||||
let urls = util.splitLiteral(str, RegExp("\\s*" + options["urlseparator"] + "\\s*"));
|
||||
let urls;
|
||||
|
||||
if (options["urlseparator"])
|
||||
urls = util.splitLiteral(str, RegExp("\\s*" + options["urlseparator"] + "\\s*"));
|
||||
else
|
||||
urls = [str]
|
||||
|
||||
return urls.map(function (url) {
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user