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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user