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`\.`; result += String.raw`\.`;
break; break;
case '*': case '*':
result += '[a-zA-Z0-9-_.]*?'; result += String.raw`[\w.-]*?`;
break; break;
case '?': case '?':
result += '[a-zA-Z0-9-_.]'; result += String.raw`[\w.-]`;
break; break;
default: default:
result += domain[i]; result += domain[i];