mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Chore: minor changes
This commit is contained in:
parent
9dcd8559e3
commit
cdc255a82a
@ -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 ##################
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user