mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: transform rule type to uppercase before process
This commit is contained in:
@@ -201,7 +201,7 @@ export class FileOutput {
|
||||
}
|
||||
|
||||
const splitted = line.split(',');
|
||||
const type = splitted[0];
|
||||
const type = splitted[0].toUpperCase();
|
||||
const value = splitted[1];
|
||||
const arg = splitted[2];
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export default async function runAgainstSourceFile(
|
||||
|
||||
if (type === 'ruleset') {
|
||||
const [ruleType, domain] = l.split(',', 3);
|
||||
switch (ruleType) {
|
||||
switch (ruleType.toUpperCase()) {
|
||||
case 'DOMAIN': {
|
||||
callback(domain, false);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user