diff --git a/packages/astro/components/Picture.astro b/packages/astro/components/Picture.astro index 15d07de4d203..1b4f67e5d2e8 100644 --- a/packages/astro/components/Picture.astro +++ b/packages/astro/components/Picture.astro @@ -28,7 +28,7 @@ if (props.alt === undefined || props.alt === null) { } // Picture attribute inherit scoped styles from class and attributes -const scopedStyleClass = props.class?.match(/\bastro-\w{8}\b/)?.[0] +const scopedStyleClass = props.class?.match(/\bastro-\w{8}\b/)?.[0]; if (scopedStyleClass) { if (pictureAttributes.class) { pictureAttributes.class = `${pictureAttributes.class} ${scopedStyleClass}`;