We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0be172 commit 5991060Copy full SHA for 5991060
@commitlint/rules/src/subject-full-stop.ts
@@ -15,7 +15,8 @@ export const subjectFullStop: SyncRule<string> = (
15
16
const negated = when === 'never';
17
let hasStop = input[input.length - 1] === value;
18
- if (input.slice(-3) === '...') {
+ let ellipsis = '...';
19
+ if (input.length > ellipsis.length && input.slice(-ellipsis.length) === ellipsis) {
20
hasStop = false;
21
}
22
0 commit comments