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