mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:47:59 +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) {
|
completion.shellCommand = function shellCommand(context) {
|
||||||
context.title = ["Shell Command", "Path"];
|
context.title = ["Shell Command", "Path"];
|
||||||
context.generate = function () {
|
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 = [];
|
let commands = [];
|
||||||
|
|
||||||
for (let [, dirName] in Iterator(dirNames)) {
|
for (let [, dirName] in Iterator(dirNames)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user