fix: update regex to keep retro compatibility

Signed-off-by: Andy Ladjadj <andy.ladjadj@adevinta.com>
This commit is contained in:
Andy Ladjadj
2023-03-24 13:42:56 +01:00
parent d07e482120
commit 0701dfc4b4
+1 -1
View File
@@ -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