mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Simplify domain regex from wildcard
This commit is contained in:
parent
19228a8216
commit
c1f8705342
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user