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

perf: remove unused regex capture groups #1551

Merged
merged 2 commits into from
Sep 12, 2023
Merged

perf: remove unused regex capture groups #1551

merged 2 commits into from
Sep 12, 2023

Conversation

Fdawgs
Copy link
Contributor

@Fdawgs Fdawgs commented Sep 12, 2023

What this does:

Removes unused capture groups ( ) inside regex.
A capture group is intended to store its matched text so it can be used later on e.g. in text replacements, so the regex engine has to do extra work every time a capture group is matched compared to a non-capture group.
The captured text is never used elsewhere here.

Related issues:

N/A

Pre/Post merge checklist:

  • Update change log

@dhensby dhensby merged commit c4544be into tediousjs:master Sep 12, 2023
@Fdawgs Fdawgs deleted the ref/regex branch September 12, 2023 19:35
@github-actions
Copy link

🎉 This PR is included in version 10.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dhensby
Copy link
Collaborator

dhensby commented Sep 13, 2023

Thanks for these fixes 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants