diff --git a/.github/workflows/lintcommits.yml b/.github/workflows/lintcommits.yml index 5f1a98c93ec..7d1006b316f 100644 --- a/.github/workflows/lintcommits.yml +++ b/.github/workflows/lintcommits.yml @@ -20,7 +20,7 @@ jobs: error: "Commit message contains CRLF line breaks (only unix-style LF linebreaks are allowed)", }, { - pattern: /^.{0,72}(?:\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$/, + pattern: /^.{0,72}(?:\r?\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$/, error: "Commit message lines are too long (maximum allowed is 72 characters, except for URLs)", }, { @@ -32,7 +32,7 @@ jobs: error: "First word of commit after the subsystem is not capitalized", }, { - pattern: /^.+[^.\n](\n.*)*$/, + pattern: /^.+[^.\n](\r?\n.*)*$/, error: "Commit title ends in a period", }, {