Feat: ability to handle inline comment

This commit is contained in:
SukkaW
2025-08-17 17:35:02 +08:00
parent fe7278c7fa
commit 373f862c6d
7 changed files with 22 additions and 10 deletions

View File

@@ -37,6 +37,12 @@ export function processLine(line: string): string | null {
*/
}
const otherPoundSign = trimmed.indexOf('#');
if (otherPoundSign > 0) {
return trimmed.slice(0, otherPoundSign).trimEnd();
}
return trimmed;
}