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

Remove unnecessary RegExp when splitting paths in completion.shellCommand.

This commit is contained in:
Doug Kearns
2010-10-02 01:07:06 +10:00
parent 38aeea10a8
commit 2aa9c05492

View File

@@ -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)) {