nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
400 stars 25 forks source link

fix(utils-pure): generalize script matcher #86

Closed dargmuesli closed 1 year ago

dargmuesli commented 1 year ago

Description

There might be a nonce attribute added to script tags, e.g. by nuxt-security, which makes the regex not match the script tag anymore. This change loosens the regex a bit so that it only checks for the script's id, which should be unique.

Linked Issues

n/a

Additional context

n/a

harlan-zw commented 1 year ago

Thanks!