Simplify domain regex from wildcard

This commit is contained in:
SukkaW 2024-11-10 19:16:41 +08:00
parent 19228a8216
commit c1f8705342

View File

@ -52,10 +52,10 @@ export abstract class RuleOutput<TPreprocessed = unknown> {
result += String.raw`\.`;
break;
case '*':
result += '[a-zA-Z0-9-_.]*?';
result += String.raw`[\w.-]*?`;
break;
case '?':
result += '[a-zA-Z0-9-_.]';
result += String.raw`[\w.-]`;
break;
default:
result += domain[i];