diff --git a/src/formatters/CompositeKeywordFormatter.ts b/src/formatters/CompositeKeywordFormatter.ts index fde6025..29a662d 100644 --- a/src/formatters/CompositeKeywordFormatter.ts +++ b/src/formatters/CompositeKeywordFormatter.ts @@ -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()]; }