peilaus alkaen
https://github.com/sammy-ette/Hilbish
synced 2025-08-10 02:52:03 +00:00
Vertaa committeja
2 Commitit
6d07d8db53
...
a5b6fc8eda
Tekijä | SHA1 | Päivämäärä | |
---|---|---|---|
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 {
|
||||
|
Ladataan…
x
Viittaa uudesa ongelmassa
Block a user