Skip to content

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