Skip to content
New issue

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

refactor(lib/find-plugins): replace regexp .exec() with .test() #417

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Oct 19, 2024

.exec() returns an array of matches, which we never use. .text() returns a boolean indicating whether the string contains the pattern.

Checklist

`.exec()` returns an array of matches, which we never use. `.text()` returns a boolean indicating whether the string contains the pattern.

Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
@Fdawgs Fdawgs merged commit ffffccf into master Oct 19, 2024
13 checks passed
@Fdawgs Fdawgs deleted the Fdawgs-patch-1 branch October 19, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants