Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

need total refactor#21

Open
makafeli wants to merge 1 commit intomainfrom
broken-updates
Open

need total refactor#21
makafeli wants to merge 1 commit intomainfrom
broken-updates

Conversation

@makafeli
Copy link
Copy Markdown
Owner

@makafeli makafeli commented Jan 7, 2025

No description provided.

text = text.lower()
words = set(re.findall(
r'\b\w+(?:[-\s.]+\w+)*(?:[-\s.]+(?:framework|lib|lang|db))?\b',
r'\b(?:node\.?js|[a-z]+(?:[-.]?[a-z0-9]+)*(?:\.?js)?)\b',

Check failure

Code scanning / CodeQL

Inefficient regular expression

This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '0'.
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