mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-22 21:41:01 +01:00
Rename variable so it doesn't contain TODO
This commit is contained in:
parent
4006eef1e1
commit
8c239a32b9
@ -36,13 +36,13 @@ func fuzzTest(t *testing.T, tester shellTester, input string) {
|
||||
if len(split2) != 2 {
|
||||
panic("malformed: split2")
|
||||
}
|
||||
thingToDo := split1[1]
|
||||
unparsedOperation := split1[1]
|
||||
cmd := ""
|
||||
redactQuery := ""
|
||||
if strings.HasPrefix(thingToDo, "!") {
|
||||
redactQuery = thingToDo[1:]
|
||||
if strings.HasPrefix(unparsedOperation, "!") {
|
||||
redactQuery = unparsedOperation[1:]
|
||||
} else {
|
||||
cmd = "echo " + thingToDo
|
||||
cmd = "echo " + unparsedOperation
|
||||
}
|
||||
re := regexp.MustCompile(`[a-zA-Z]+`)
|
||||
if !re.MatchString(cmd) && cmd != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user