-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: add slugify to select tab framework #11951
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@halvaradop is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
* @returns - A string parsed from the URL | ||
*/ | ||
const parseParams = (url: string): string => { | ||
let parsedUrl = url.toLowerCase().replaceAll(/[^a-zA-z]+/g, "-") |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range Medium documentation
☕️ Reasoning
This pull request adds slugification for framework tabs, allowing the currently selected framework's name to appear in the URL. The framework is determined based on the button container, as there is no direct access to the selected button. Additionally, the
Tabs
component fromnextra/components
automatically updates the selected framework inlocalStorage
under theauthjs.codeTab.framework
key, using the index from the items prop.🧢 Checklist
🎫 Affected issues
📌 Resources