From 0a751a4d2321afd3b1bc6397405570a5e421ceb4 Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 11 Jul 2023 18:56:58 -0400 Subject: [PATCH] fix: use splitInput function to split alias args this makes it so that quoted text is a single arg in the slice --- aliases.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases.go b/aliases.go index 258f3e6..fc5777e 100644 --- a/aliases.go +++ b/aliases.go @@ -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 {