Skip to content

Conversation

@RulaKhaled
Copy link
Member

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

Comment on lines +25 to +27
resultPath = resultPath.replace(paramPattern, (match, paramName) => {
return paramName === key ? encodeURIComponent(value) : match;
});

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '[' and with many repetitions of '[\'.
This
regular expression
that depends on
library input
may run slow on strings starting with '[' and with many repetitions of '[\'.
Comment on lines +38 to +39
const normalizedPath = path
.replace(/\([^)]+\)/g, '') // Remove route groups

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '(' and with many repetitions of '('.
This
regular expression
that depends on
library input
may run slow on strings starting with '(' and with many repetitions of '('.
@RulaKhaled RulaKhaled closed this Jun 6, 2025
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.

1 participant