We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2ba038 + c4aa544 commit c2f791dCopy full SHA for c2f791d
src/rules/case-abbrs.ts
@@ -49,7 +49,7 @@ const matchAbbr = (
49
// get the next matching abbr chars by removing the last char and filtering
50
const matchedAbbrChars = reversedAbbrChars
51
.filter(
52
- (abbr) => abbr[0].toLowerCase() === tokenBefore.value.toLowerCase()
+ (abbr) => tokenBefore.value && abbr[0].toLowerCase() === tokenBefore.value.toLowerCase()
53
)
54
.map((abbr) => abbr.slice(1))
55
0 commit comments