@@ -12,7 +12,8 @@ describe('processLine', () => {
[' # comment', null],
['###id', '###id'],
['##.class', '##.class'],
- ['## EOF', '## EOF']
+ ['## EOF', '## EOF'],
+ ['##### EOF', null]
] as const).forEach(([input, expected]) => {
it(input, () => {
expect(processLine(input)).toBe(expected);
@@ -23,7 +23,7 @@ export function processLine(line: string): string | null {
// # Comment
return null;
}
- if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35) {
+ if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35 /** # */) {
// ################## EOF ##################