0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00
astro/.changeset
Steven Benner ccc05d5401
Fix build failure when image file name includes special characters (#9781)
The latest version of `vite-plugin-markdown` uses a regular
expression that includes the file path via string concatenation.
However the file path is not escaped for use in a regular
expressions. So if a markdown document includes a reference to an
image file name which includes certain special characters it will
cause the build to fail.

This patch escapes regex special characters in the file path string
being injected into the regular expression. While I found that not
all special characters will cause this problem, it seems safer to
simply escape all regex specials. I also added test to verify this.

Related to: Commit 165cfc154b

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-01-23 18:16:56 -05:00
..
config.json Enter pre mode for Astro 4 beta 2023-11-16 21:53:20 +08:00
large-phones-guess.md fix: accept the 'switch' aria role during a11y checks (#9792) 2024-01-23 16:31:39 -05:00
lorem-ipsum-dolor Fix static build when out dir is not within the cwd (#9378) 2023-12-13 10:17:10 -05:00
README.md
tall-comics-punch.md refactor: remove endpoint handling infra (#9775) 2024-01-23 19:33:51 +05:30
tricky-cobras-provide.md fix: vite security issue (#9773) 2024-01-23 20:48:20 +08:00
weak-plums-sip.md Fix build failure when image file name includes special characters (#9781) 2024-01-23 18:16:56 -05:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation