only strip quotes from subcommand if they are at both ends

This commit is contained in:
LenAnderson
2024-04-12 17:26:53 -04:00
parent e0801176ac
commit adbd88aa79

View File

@ -510,12 +510,8 @@ function evalBoolean(rule, a, b) {
* @returns {Promise<string>} Pipe result
*/
async function executeSubCommands(command, scope = null) {
if (command.startsWith('"')) {
command = command.slice(1);
}
if (command.endsWith('"')) {
command = command.slice(0, -1);
if (command.startsWith('"') && command.endsWith('"')) {
command = command.slice(1, -1);
}
const result = await executeSlashCommands(command, true, scope);