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

Bug/label-defintion #681

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Bug/label-defintion #681

merged 3 commits into from
Jun 14, 2024

Conversation

arjangeertsema
Copy link
Collaborator

No description provided.

@arjangeertsema arjangeertsema merged commit 6bb441f into main Jun 14, 2024
3 checks passed
@arjangeertsema arjangeertsema deleted the bug/labe-defl branch June 14, 2024 14:44
if (!this.#definitions) {
this.#definitions = await this.definitionStore.get();
const words = this.#definitions.map(definition => definition.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
this.#regEx = new RegExp(`\b${words.join("|")}\b(?![^<]*>)`, "gmi")

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\b' is a backspace, and not a word-boundary assertion when it is used in a
regular expression
.
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.

None yet

1 participant