Skip to content

Commit

Permalink
fix: use splitInput function to split alias args
Browse files Browse the repository at this point in the history
this makes it so that quoted text is a single arg in the slice
  • Loading branch information
TorchedSammy committed Jul 11, 2023
1 parent 68ffe73 commit 0a751a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a751a4

Please sign in to comment.