Fix a number of things.
This commit is contained in:
parent
6e0d8979be
commit
8cbbe9c53c
7 changed files with 105 additions and 61 deletions
|
|
@ -154,7 +154,9 @@ func expandSigil(input string, vars map[string][]string) ([]string, int) {
|
|||
varvals, ok := vars[varname]
|
||||
if ok {
|
||||
return varvals, offset
|
||||
}
|
||||
} else {
|
||||
return []string{"$" + input[:offset]}, offset
|
||||
}
|
||||
}
|
||||
|
||||
return []string{"$" + input}, len(input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue