mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 17:50:34 +08:00
Chore: minor changes
This commit is contained in:
parent
9dcd8559e3
commit
cdc255a82a
@ -12,7 +12,8 @@ describe('processLine', () => {
|
|||||||
[' # comment', null],
|
[' # comment', null],
|
||||||
['###id', '###id'],
|
['###id', '###id'],
|
||||||
['##.class', '##.class'],
|
['##.class', '##.class'],
|
||||||
['## EOF', '## EOF']
|
['## EOF', '## EOF'],
|
||||||
|
['##### EOF', null]
|
||||||
] as const).forEach(([input, expected]) => {
|
] as const).forEach(([input, expected]) => {
|
||||||
it(input, () => {
|
it(input, () => {
|
||||||
expect(processLine(input)).toBe(expected);
|
expect(processLine(input)).toBe(expected);
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export function processLine(line: string): string | null {
|
|||||||
// # Comment
|
// # Comment
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35) {
|
if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35 /** # */) {
|
||||||
// ################## EOF ##################
|
// ################## EOF ##################
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user