1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:47:58 +01:00

":set urloperator=" will turn off splitting

used to go into infinite loop
This commit is contained in:
Conrad Irwin
2009-07-12 13:54:58 +01:00
parent 25f2695ee2
commit 4a70d7c097
2 changed files with 8 additions and 2 deletions

View File

@@ -625,7 +625,12 @@ const util = { //{{{
*/ */
stringToURLArray: function stringToURLArray(str) 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) { return urls.map(function (url) {
try try

View File

@@ -759,7 +759,8 @@ Set the separator regex used to separate multiple URL args. Multiple arguments
can be specified for [c]:open[c], and similar commands, using this regex as can be specified for [c]:open[c], and similar commands, using this regex as
the separator. Using whitespace alone is not generally useful since it is often the separator. Using whitespace alone is not generally useful since it is often
contained in a single argument. E.g. [c]:open linus torvalds[c] should perform contained in a single argument. E.g. [c]:open linus torvalds[c] should perform
a single search for the key words "linus" and "torvalds" a single search for the key words "linus" and "torvalds". If this is set to the
empty string then these arguments will never be split.
____ ____