spogulis no
https://github.com/Hilbis/Hilbish
synced 2025-07-10 21:12:02 +00:00
fix: use splitInput function to split alias args
this makes it so that quoted text is a single arg in the slice
Šī revīzija ir iekļauta:
vecāks
68ffe73328
revīzija
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 {
|
||||
|
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user