From 5a5aec891939e285b846c1e2d25fd72d86ad2ccf Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 11 Sep 2023 16:58:10 +0200 Subject: [PATCH] Only match data selectors if they are in a new line #711 --- src/frontend/app/ui/gallery/blog/blog.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/blog/blog.service.ts b/src/frontend/app/ui/gallery/blog/blog.service.ts index d35def47..2ec864cb 100644 --- a/src/frontend/app/ui/gallery/blog/blog.service.ts +++ b/src/frontend/app/ui/gallery/blog/blog.service.ts @@ -51,7 +51,7 @@ export class BlogService { dates.sort(); - const splitterRgx = new RegExp(//, 'gi'); + const splitterRgx = new RegExp(/^\s*/, 'gi'); const dateRgx = new RegExp(/\d{4}-\d{1,2}-\d{1,2}/); const ret: GroupedMarkdown[] = [];