Skip to content

refactor(lib/validation): replace regexp .exec() with .test()#5750

Merged
Uzlopak merged 1 commit into
mainfrom
Fdawgs-patch-1
Oct 19, 2024
Merged

refactor(lib/validation): replace regexp .exec() with .test()#5750
Uzlopak merged 1 commit into
mainfrom
Fdawgs-patch-1

Conversation

@Fdawgs

@Fdawgs Fdawgs commented Oct 19, 2024

Copy link
Copy Markdown
Member

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

Checklist

Signed-off-by: Frazer Smith <frazer.dev@icloud.com>

@Uzlopak Uzlopak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@Uzlopak Uzlopak merged commit 9d9431d into main Oct 19, 2024
@Uzlopak Uzlopak deleted the Fdawgs-patch-1 branch October 19, 2024 18:52
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants