mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02: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)
|
buf.WriteRune(r)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
if expectingBrace { // last was $ but { not matched
|
||||||
|
buf.WriteRune('$')
|
||||||
|
expectingBrace = false
|
||||||
|
}
|
||||||
if inEnvVar {
|
if inEnvVar {
|
||||||
envVar.WriteRune(r)
|
envVar.WriteRune(r)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user