diff --git a/.github/workflows/pr-format-check.yml b/.github/workflows/pr-format-check.yml index 48e3b6e9..3155eed9 100644 --- a/.github/workflows/pr-format-check.yml +++ b/.github/workflows/pr-format-check.yml @@ -57,9 +57,9 @@ jobs: // Extract the summary content const summaryContent = summaryMatch[1]; - // Remove all HTML comments including the template placeholder + // Remove all HTML comments including unclosed ones (template placeholders) const contentWithoutComments = - summaryContent.replace(//g, ''); + summaryContent.replace(/|$)/g, ''); // Remove whitespace and check if there's actual text content const trimmedContent = contentWithoutComments.trim();