mirror of https://github.com/Hilbis/Hilbish
Compare commits
1 Commits
be1063ea0e
...
26fd6cd5fd
Author | SHA1 | Date |
---|---|---|
sammyette | 26fd6cd5fd |
|
@ -51,11 +51,6 @@ func (a *aliasModule) Resolve(cmdstr string) string {
|
||||||
arg, _ := regexp.Compile(`[\\]?%\d+`)
|
arg, _ := regexp.Compile(`[\\]?%\d+`)
|
||||||
|
|
||||||
args, _ := splitInput(cmdstr)
|
args, _ := splitInput(cmdstr)
|
||||||
if len(args) == 0 {
|
|
||||||
// this shouldnt reach but...????
|
|
||||||
return cmdstr
|
|
||||||
}
|
|
||||||
|
|
||||||
for a.aliases[args[0]] != "" {
|
for a.aliases[args[0]] != "" {
|
||||||
alias := a.aliases[args[0]]
|
alias := a.aliases[args[0]]
|
||||||
alias = arg.ReplaceAllStringFunc(alias, func(a string) string {
|
alias = arg.ReplaceAllStringFunc(alias, func(a string) string {
|
||||||
|
|
Loading…
Reference in New Issue