fix(rules): correct dollar sign handling

This commit is contained in:
yusing
2025-10-10 21:37:54 +08:00
parent 973a58e982
commit 98f047d88a

View File

@@ -128,6 +128,10 @@ func parse(v string) (subject string, args []string, err gperr.Error) {
buf.WriteRune(r)
}
default:
if expectingBrace { // last was $ but { not matched
buf.WriteRune('$')
expectingBrace = false
}
if inEnvVar {
envVar.WriteRune(r)
} else {