Skip to content

Commit bd71882

Browse files
committed
fix(main): fix error message when violate dotAtEnd rule
1 parent 4769d72 commit bd71882

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ const checkValue = (term, value, definition) => {
124124
break
125125
case 'dotAtEnd':
126126
if (ruleSetting) {
127-
if (/[^\.]$/.test(value)) errorMessages.push(`${term} should not put dot (.) at the end.`)
127+
if (/[^\.]$/.test(value)) errorMessages.push(`${term} should put dot (.) at the end.`)
128128
} else {
129-
if (/\.$/.test(value)) errorMessages.push(`${term} should put dot (.) at the end.`)
129+
if (/\.$/.test(value)) errorMessages.push(`${term} should not put dot (.) at the end.`)
130130
}
131131
break
132132
case 'numberOnly':

0 commit comments

Comments
 (0)