mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-22 23:05:24 +00:00
* use parsed options while signing * update project layout to v3 * fix .gitignore * remove example template * misc updates * bump tlsx version * hide template sig warning with env * js: retain value while using log * fix nil pointer derefernce * misc doc update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
24 lines
489 B
Go
24 lines
489 B
Go
package flow
|
|
|
|
import "github.com/projectdiscovery/nuclei/v3/pkg/operators"
|
|
|
|
// Checks if template has matchers
|
|
func hasMatchers(all []*operators.Operators) bool {
|
|
for _, operator := range all {
|
|
if len(operator.Matchers) > 0 {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|
|
|
|
// hasOperators checks if template has operators (i.e matchers/extractors)
|
|
func hasOperators(all []*operators.Operators) bool {
|
|
for _, operator := range all {
|
|
if operator != nil {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|