Skip to content

Commit bc9fa44

Browse files
committed
refactor(require-description-complete-sentence): avoid verbose check
1 parent dd5f015 commit bc9fa44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/requireDescriptionCompleteSentence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const isNewLinePrecededByAPeriod = (text) => {
4545
const lines = text.split('\n');
4646

4747
return !lines.some((line) => {
48-
if (typeof lastLineEndsSentence === 'boolean' && !lastLineEndsSentence && /^[A-Z][a-z]/u.test(line)) {
48+
if (lastLineEndsSentence === false && /^[A-Z][a-z]/u.test(line)) {
4949
return true;
5050
}
5151

0 commit comments

Comments
 (0)