Skip to content

Commit 9376d61

Browse files
committed
Allow for one-liners in overall pattern
1 parent 011cdd1 commit 9376d61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/commit-checker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ jobs:
7171
excludeTitle: 'true' # optional: this excludes the title of a pull request
7272
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
7373
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
74-
pattern: '^(?![A-Z].*\.)[A-Z].{0,49}\r?\n\r?\n(?:.{0,71}\r?\n)*(?:.{0,71}\.)?\r?\n?$'
74+
pattern: '^(?![A-Z].*\.)[A-Z].{0,49}(\r?|\r?\n(?:.{0,71}\r?\n)*(?:.{0,71}\.)?\r?\n?)$'
7575
error: "Something is not right"

0 commit comments

Comments
 (0)