From 15ec494dc876c551f83e6aafb7ac6ff82670c069 Mon Sep 17 00:00:00 2001 From: Oscar Masse Date: Thu, 30 Apr 2026 10:41:24 +0200 Subject: [PATCH] fix(validator): fix revert header pattern typo Two bugs in REVERT_HEADER_PATTERN: - [R|r] matched literal '|', changed to [Rr] - 'apply' matched 'rapply' instead of 'reapply', changed to 'eapply' --- validator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator.sh b/validator.sh index a07c113..ced3d5a 100644 --- a/validator.sh +++ b/validator.sh @@ -7,7 +7,7 @@ readonly JIRA_FOOTER_PATTERN="^(${JIRA_PATTERN} ?)+$" readonly JIRA_HEADER_PATTERN="^.*[^A-Z](${JIRA_PATTERN}).*$" readonly BROKE_PATTERN="^BROKEN:$" readonly TRAILING_SPACE_PATTERN=" +$" -readonly REVERT_HEADER_PATTERN="^[R|r](evert|apply)[: ].*$" +readonly REVERT_HEADER_PATTERN="^[Rr](evert|eapply)[: ].*$" readonly REVERT_COMMIT_PATTERN="^This reverts commit ([a-f0-9]+)" readonly TEMP_HEADER_PATTERN="^(fixup!|squash!).*$"