Fix typos

Found via `codespell -L ines,te,ue,occured,ans`
This commit is contained in:
Kian-Meng Ang
2025-03-11 00:04:31 +08:00
parent 81ce4b1e69
commit f08a003d29
10 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
// Package customheader contains all the funcionality to deal with Custom Global Headers
// Package customheader contains all the functionality to deal with Custom Global Headers
package customheader
+1 -1
View File
@@ -1,2 +1,2 @@
// Package customlist contains all the funcionality to deal with Custom Target List
// Package customlist contains all the functionality to deal with Custom Target List
package customlist
+1 -1
View File
@@ -1,2 +1,2 @@
// Package customport contains all the funcionality to deal with HTTP ports
// Package customport contains all the functionality to deal with HTTP ports
package customport
+1 -1
View File
@@ -1,2 +1,2 @@
// Package fileutil contains all the funcionality related to deal with files
// Package fileutil contains all the functionality related to deal with files
package fileutil
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"go.uber.org/multierr"
)
// oneTimePool is a pool designed to create continous bare connections that are for one time only usage
// oneTimePool is a pool designed to create continuous bare connections that are for one time only usage
type oneTimePool struct {
address string
idleConnections chan net.Conn
+1 -1
View File
@@ -1,2 +1,2 @@
// Package httputilz contains all the funcionality related to common HTTP operations, dump, define methods...
// Package httputilz contains all the functionality related to common HTTP operations, dump, define methods...
package httputilz
+1 -1
View File
@@ -1,2 +1,2 @@
// Package httpx containst the httpx common funcionality
// Package httpx containst the httpx common functionality
package httpx
+2 -2
View File
@@ -14,10 +14,10 @@ var rawResponse string
func TestBodyGrabDoamins(t *testing.T) {
ht, err := New(&DefaultOptions)
require.Nil(t, err)
resposne := &Response{
response := &Response{
Raw: rawResponse,
}
bd := ht.BodyDomainGrab(resposne)
bd := ht.BodyDomainGrab(response)
sort.Strings(bd.Domains)
sort.Strings(bd.Fqdns)
+1 -1
View File
@@ -1475,7 +1475,7 @@ func (r *Runner) targets(hp *httpx.HTTPX, target string) chan httpx.Target {
switch {
case stringsutil.HasPrefixAny(target, "*", "."):
// A valid target does not contain:
// trim * and/or . (prefix) from the target to return the domain instead of wilcard
// trim * and/or . (prefix) from the target to return the domain instead of wildcard
target = stringsutil.TrimPrefixAny(target, "*", ".")
if !r.testAndSet(target) {
return
+4 -4
View File
@@ -31,7 +31,7 @@ func TestRunner_domain_targets(t *testing.T) {
got = append(got, target)
}
}
require.ElementsMatch(t, expected, got, "could not exepcted output")
require.ElementsMatch(t, expected, got, "could not expected output")
}
func TestRunner_probeall_targets(t *testing.T) {
@@ -62,7 +62,7 @@ func TestRunner_probeall_targets(t *testing.T) {
got = append(got, target)
}
require.ElementsMatch(t, expected, got, "could not exepcted output")
require.ElementsMatch(t, expected, got, "could not expected output")
}
func TestRunner_cidr_targets(t *testing.T) {
@@ -87,7 +87,7 @@ func TestRunner_cidr_targets(t *testing.T) {
got = append(got, target)
}
require.ElementsMatch(t, expected, got, "could not exepcted output")
require.ElementsMatch(t, expected, got, "could not expected output")
}
func TestRunner_asn_targets(t *testing.T) {
@@ -179,5 +179,5 @@ func TestRunner_urlWithComma_targets(t *testing.T) {
got = append(got, target)
}
}
require.ElementsMatch(t, expected, got, "could not exepcted output")
require.ElementsMatch(t, expected, got, "could not expected output")
}