summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/prerender.test.js
diff options
context:
space:
mode:
authorGravatar Anders Kaseorg <andersk@mit.edu> 2023-07-20 22:59:10 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-21 07:59:10 +0200
commite528526289dd9fba98e254743ded47a5c6d418a8 (patch)
tree3061f354b017268958aa73e54a47bb5e7f7337b0 /packages/integrations/netlify/test/functions/prerender.test.js
parent379981efdc621263c0e589637585f1997e93d5e0 (diff)
downloadastro-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