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

fix: sitemap regex #83

Closed
wants to merge 1 commit into from
Closed

fix: sitemap regex #83

wants to merge 1 commit into from

Conversation

Music47ell
Copy link

The current regex removes any mention of .js|.tsx|.mdx|.md in the file name and changes the slug when generating a sitemap.

Example: /blog/my-new-nextjs-reactjs-portfolio.mdx becomes /blog/my-new-nex-reac-portfolio

@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2022

⚠️ No Changeset found

Latest commit: 50da158

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@timlrx
Copy link
Owner

timlrx commented Feb 6, 2023

Sorry for the much delayed reply. That fixes the problem but it also introduces a new one. Files adding with feed.xml are wrongly processed. Let me just modify the regex to match on .js|.tsx|.mdx|.md at the end of string rather than globally.

@timlrx timlrx mentioned this pull request Feb 6, 2023
@timlrx timlrx closed this Feb 6, 2023
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

2 participants