Skip to content

[WIP] feat(nextjs): Add URL to tags of server component and layout issues #16499

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

Closed
wants to merge 2 commits into from

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