diff options
author | 2023-07-20 22:59:10 -0700 | |
---|---|---|
committer | 2023-07-21 07:59:10 +0200 | |
commit | e528526289dd9fba98e254743ded47a5c6d418a8 (patch) | |
tree | 3061f354b017268958aa73e54a47bb5e7f7337b0 /packages/integrations/netlify/test/functions/prerender.test.js | |
parent | 379981efdc621263c0e589637585f1997e93d5e0 (diff) | |
download | astro-e528526289dd9fba98e254743ded47a5c6d418a8.tar.gz astro-e528526289dd9fba98e254743ded47a5c6d418a8.tar.zst astro-e528526289dd9fba98e254743ded47a5c6d418a8.zip |
Fix parsing image assets from a Markdown line along with other markup (#7742)
Every regex that tries to match a substring with .* or .+ is
guaranteed to be wrong. In this case, it was giving incorrect matches
straddling multiple quoted attributes:
<img __ASTRO_IMAGE_="../assets/image.png"> and <a href="link">link</a>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Fixes #7741.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'packages/integrations/netlify/test/functions/prerender.test.js')
0 files changed, 0 insertions, 0 deletions