mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: slice comment out for iteration
This commit is contained in:
@@ -15,6 +15,12 @@ export default async function runAgainstSourceFile(
|
||||
if (!l) {
|
||||
continue;
|
||||
}
|
||||
const otherPoundSign = l.lastIndexOf('#');
|
||||
|
||||
if (otherPoundSign > 0) {
|
||||
l = l.slice(0, otherPoundSign).trimEnd();
|
||||
}
|
||||
|
||||
if (type == null) {
|
||||
if (l.includes(',')) {
|
||||
type = 'ruleset';
|
||||
|
||||
Reference in New Issue
Block a user