aboutsummaryrefslogtreecommitdiff
path: root/examples/blog-multiple-authors/src/components/PostPreview.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog-multiple-authors/src/components/PostPreview.astro')
-rw-r--r--examples/blog-multiple-authors/src/components/PostPreview.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blog-multiple-authors/src/components/PostPreview.astro b/examples/blog-multiple-authors/src/components/PostPreview.astro
index 5a9808348..cf1579203 100644
--- a/examples/blog-multiple-authors/src/components/PostPreview.astro
+++ b/examples/blog-multiple-authors/src/components/PostPreview.astro
@@ -7,7 +7,7 @@ const { post, author } = Astro.props;
const { frontmatter } = post;
function formatDate(date) {
- return new Date(date).toUTCString().replace(/(\d\d\d\d) .*/, '$1'); // remove everything after YYYY
+ return new Date(date).toUTCString().replace(/(\d\d\d\d) .*/, "$1"); // remove everything after YYYY
}
---