Fix expanded bracketed sigils.
This commit is contained in:
parent
dc4276690a
commit
ce54fa1868
2 changed files with 8 additions and 5 deletions
|
|
@ -126,8 +126,8 @@ func expandSigil(input string, vars map[string][]string) ([]string, int) {
|
|||
return []string{"$" + input}, len(input)
|
||||
}
|
||||
|
||||
varname = input[w:j]
|
||||
offset = j + 1
|
||||
varname = input[w : w+j]
|
||||
offset = w + j + 1
|
||||
} else {
|
||||
// try to match a variable name
|
||||
i := 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue