From 4ec00aaa1bb499f6ced929eaae5999ffa0e2466a Mon Sep 17 00:00:00 2001 From: SukkaW Date: Mon, 25 Aug 2025 23:53:01 +0800 Subject: [PATCH] Chore: slice comment out for iteration --- Build/lib/run-against-source-file.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Build/lib/run-against-source-file.ts b/Build/lib/run-against-source-file.ts index 4f13ca8a..6ae6d0d8 100644 --- a/Build/lib/run-against-source-file.ts +++ b/Build/lib/run-against-source-file.ts @@ -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';