mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
ccc05d5401
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
|
||
---|---|---|
.. | ||
astro | ||
astro-prism | ||
astro-rss | ||
create-astro | ||
integrations | ||
internal-helpers | ||
markdown/remark | ||
telemetry | ||
underscore-redirects | ||
upgrade |