mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 02:00:37 +08:00
Chore: slice comment out for iteration
This commit is contained in:
parent
0441e925f8
commit
4ec00aaa1b
@ -15,6 +15,12 @@ export default async function runAgainstSourceFile(
|
|||||||
if (!l) {
|
if (!l) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
const otherPoundSign = l.lastIndexOf('#');
|
||||||
|
|
||||||
|
if (otherPoundSign > 0) {
|
||||||
|
l = l.slice(0, otherPoundSign).trimEnd();
|
||||||
|
}
|
||||||
|
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
if (l.includes(',')) {
|
if (l.includes(',')) {
|
||||||
type = 'ruleset';
|
type = 'ruleset';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user