From 49cd02d173b93144c8a1cb3d0c50041483367ff5 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:36:00 -0400 Subject: [PATCH] Update src/dev/generate_release_note_helper.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note_helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index f015842aad76..4f10270390c6 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -45,7 +45,7 @@ export function validateFragment(content: string) { if (!SECTION_MAPPING[sectionKey as SectionKey] || !sectionName.endsWith(':')) { throw new Error(`Unknown section ${sectionKey}.`); } - // validate entries. each entry must start with '-' and a space. then followed by a string. string must be non-empty and less than 50 characters + // Each entry must start with '-' and a space, followed by a non-empty string, and be no longer that MAX_ENTRY_LENGTH characters const entryRegex = new RegExp(`^-.{1,${MAX_ENTRY_LENGTH}}\\(\\[#.+]\\(.+\\)\\)$`); for (const entry of lines.slice(1)) { if (entry === '') {