Skip to content

Commit

Permalink
fix: Make sure empty string is not checked. (#6680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Dec 16, 2024
1 parent 95b0357 commit bbf8709
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function lineValidatorFactory(sDict: SpellingDictionary, options: Validat
};
return vr;
}
if (possibleWord.text.endsWith('.')) {
if (possibleWord.text.endsWith('.') && possibleWord.text.length > 1) {
const pw = { ...possibleWord, text: possibleWord.text.slice(0, -1) };
if (isWordFlagged(pw)) {
const vr: ValidationIssueRO = {
Expand Down

0 comments on commit bbf8709

Please sign in to comment.