We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ba038 commit c4aa544Copy full SHA for c4aa544
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