Removed '...' and replaced arrow

This commit is contained in:
willerbee 2020-10-14 09:49:33 +08:00 committed by GitHub
parent 155deff9a8
commit 41c487458e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,8 +3,8 @@ function capitalizeFirstLetter(str) {
}
function addChildCommands(unifiedCommands, commandItem, parentCommandDisplay = '') {
let commandItemDisplay = commandItem.display;
if (parentCommandDisplay) commandItemDisplay = parentCommandDisplay + " " + commandItemDisplay;
let commandItemDisplay = commandItem.display.replace(/\s?\.\.\.$/g,'');
if (parentCommandDisplay) commandItemDisplay = parentCommandDisplay + " > " + commandItemDisplay;
if (commandItem.subgroup) {
try {
commandItem.exec();