Skip to content

Commit f067894

Browse files
committed
fix(parser): empty command.param
1 parent ecc82cf commit f067894

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/parser/internal/variables/custom_var/custom_var.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ var CustomVar = &types.Variable{
4848
text := v.EvalValue
4949
if parseCtx.Text != nil {
5050
text = strings.ReplaceAll(text, "$(command.param)", *parseCtx.Text)
51+
} else {
52+
text = strings.ReplaceAll(text, "$(command.param)", "")
5153
}
5254

5355
filledWithVariablesValue, err := parseCtx.Services.Bus.Parser.ParseVariablesInText.Request(

0 commit comments

Comments
 (0)