From 2aa9c05492e0abcdfc7a2a62fd79ef9d6f477e1f Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 2 Oct 2010 01:07:06 +1000 Subject: [PATCH] Remove unnecessary RegExp when splitting paths in completion.shellCommand. --- common/content/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/io.js b/common/content/io.js index 9536bcfb..c0d0c83a 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -729,7 +729,7 @@ lookup: completion.shellCommand = function shellCommand(context) { context.title = ["Shell Command", "Path"]; context.generate = function () { - let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("WINNT") ? ";" : ":")); + let dirNames = services.get("environment").get("PATH").split(dactyl.has("WINNT") ? ";" : ":"); let commands = []; for (let [, dirName] in Iterator(dirNames)) {