Skip to content

Commit

Permalink
Merge branch 'feat/chanelog_project' of https://github.com/BigSamu/Op…
Browse files Browse the repository at this point in the history
…enSearch-Dashboards into feat/chanelog_project
  • Loading branch information
CMDWillYang committed Apr 12, 2024
2 parents 469ef07 + 49cd02d commit 3b0506a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/generate_release_note_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand Down

0 comments on commit 3b0506a

Please sign in to comment.