Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Mar 7, 2024
1 parent 498a328 commit af5be2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatters/CompositeKeywordFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class CompositeKeywordFormatter {
if (lowerValue.startsWith('end')) {
return [token.text.substring(0, 3), token.text.substring(3).trim()];
} else if ((match = /^(#\s*(?:else|end))\s*(if)/i.exec(token.text))) {
return match?.slice(1) as [string, string];
return match.slice(1) as [string, string];
} else {
return [token.text.substring(0, 4), token.text.substring(4).trim()];
}
Expand Down

0 comments on commit af5be2c

Please sign in to comment.