Chore: transform rule type to uppercase before process
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW 2025-09-15 02:25:25 +08:00
parent 30077a4bb0
commit f301cb4125
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ export class FileOutput {
} }
const splitted = line.split(','); const splitted = line.split(',');
const type = splitted[0]; const type = splitted[0].toUpperCase();
const value = splitted[1]; const value = splitted[1];
const arg = splitted[2]; const arg = splitted[2];

View File

@ -31,7 +31,7 @@ export default async function runAgainstSourceFile(
if (type === 'ruleset') { if (type === 'ruleset') {
const [ruleType, domain] = l.split(',', 3); const [ruleType, domain] = l.split(',', 3);
switch (ruleType) { switch (ruleType.toUpperCase()) {
case 'DOMAIN': { case 'DOMAIN': {
callback(domain, false); callback(domain, false);
break; break;