We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before:
strings.Contains(s, "aa") && strings.Contains(s, "bb")
After
strings.ContainsAll(ss, "aa", "bb")
Potentially as a drop in replacement we can use stringsutil.Contains with variadic values:
stringsutil.Contains
func Contains(s []string, values ...string) bool { ... }
Example: https://github.com/projectdiscovery/nuclei/blob/cc03b7591a70822dd1aa7265f875c63ed3795af2/pkg/protocols/http/httpclientpool/options.go#L39
The content you are editing has changed. Please copy your edits and refresh the page.
strings.Contains
stringsutil.ContainsAll
The text was updated successfully, but these errors were encountered:
dogancanbakir
Successfully merging a pull request may close this issue.
Before:
After
Potentially as a drop in replacement we can use
stringsutil.Contains
with variadic values:Example: https://github.com/projectdiscovery/nuclei/blob/cc03b7591a70822dd1aa7265f875c63ed3795af2/pkg/protocols/http/httpclientpool/options.go#L39
Tasks
strings.Contains
check instances withstringsutil.ContainsAll
nuclei#5327The text was updated successfully, but these errors were encountered: