fix: use splitInput function to split alias args

this makes it so that quoted text is a single arg in the slice
pull/258/head
sammyette 2023-07-11 18:56:58 -04:00
parent 68ffe73328
commit 0a751a4d23
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

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