mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 13:02:12 -07:00
refact: refactored to use islazy and updated deps
This commit is contained in:
parent
a2b3ee79fb
commit
d070445225
238 changed files with 12662 additions and 1586 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/bettercap/bettercap/core"
|
||||
"github.com/evilsocket/islazy/str"
|
||||
)
|
||||
|
||||
func ParseCommands(line string) []string {
|
||||
|
@ -62,7 +62,7 @@ func ParseCommands(line string) []string {
|
|||
|
||||
cmds := make([]string, 0)
|
||||
for _, cmd := range args {
|
||||
cmd = core.Trim(cmd)
|
||||
cmd = str.Trim(cmd)
|
||||
if cmd != "" || (len(cmd) > 0 && cmd[0] != '#') {
|
||||
cmds = append(cmds, cmd)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue