Fix expanded bracketed sigils.

This commit is contained in:
Daniel Jones 2013-07-28 21:16:50 -07:00
parent dc4276690a
commit ce54fa1868
2 changed files with 8 additions and 5 deletions

View file

@ -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