From 0701dfc4b46abfe15e7ef078a069c7407dfc1ffb Mon Sep 17 00:00:00 2001 From: Andy Ladjadj Date: Fri, 24 Mar 2023 13:42:56 +0100 Subject: [PATCH] fix: update regex to keep retro compatibility Signed-off-by: Andy Ladjadj --- plugins/adr-common/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/adr-common/src/index.ts b/plugins/adr-common/src/index.ts index ffdd9b349a..cf71367cba 100644 --- a/plugins/adr-common/src/index.ts +++ b/plugins/adr-common/src/index.ts @@ -77,7 +77,7 @@ export type AdrFilePathFilterFn = (path: string) => boolean; * @public */ export const madrFilePathFilter: AdrFilePathFilterFn = (path: string) => - /^(?:.+\/)?\d{4}-.+\.md$/.test(path); + /^(?:.*\/)?\d{4}-.+\.md$/.test(path); /** * ADR indexable document interface