diff --git a/common/content/util.js b/common/content/util.js index 50e83f77..475c83aa 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -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 diff --git a/vimperator/locale/en-US/options.txt b/vimperator/locale/en-US/options.txt index 07817939..de164aa3 100644 --- a/vimperator/locale/en-US/options.txt +++ b/vimperator/locale/en-US/options.txt @@ -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 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 -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. ____