mirror of https://github.com/Hilbis/Hilbish
fix: use splitInput function to split alias args
this makes it so that quoted text is a single arg in the slicepull/258/head
parent
68ffe73328
commit
0a751a4d23
|
@ -50,7 +50,7 @@ func (a *aliasModule) Resolve(cmdstr string) string {
|
|||
|
||||
arg, _ := regexp.Compile(`[\\]?%\d+`)
|
||||
|
||||
args := strings.Split(cmdstr, " ")
|
||||
args, _ := splitInput(cmdstr)
|
||||
for a.aliases[args[0]] != "" {
|
||||
alias := a.aliases[args[0]]
|
||||
alias = arg.ReplaceAllStringFunc(alias, func(a string) string {
|
||||
|
|
Loading…
Reference in New Issue