mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: ability to handle inline comment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user