fix: trim prefix of alias instead of trim

pull/59/head
sammyette 2021-05-16 09:29:39 -04:00
parent ad14b98b1f
commit 415e66ab9c
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ func RunInput(input string) {
// If alias was found, use command alias // If alias was found, use command alias
if aliases[cmdArgs[0]] != "" { if aliases[cmdArgs[0]] != "" {
alias := aliases[cmdArgs[0]] alias := aliases[cmdArgs[0]]
cmdString = alias + strings.Trim(cmdString, cmdArgs[0]) cmdString = alias + strings.TrimPrefix(cmdString, cmdArgs[0])
cmdArgs, cmdString = splitInput(cmdString) cmdArgs, cmdString = splitInput(cmdString)
} }