mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 00:29:03 +01:00
fix(rules): correct dollar sign handling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user