mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Fix: update domain wildcard to regex conversion
This commit is contained in:
parent
f5a58349cb
commit
482b41664a
@ -37,10 +37,10 @@ export const domainWildCardToRegex = (domain: string) => {
|
||||
result += String.raw`\.`;
|
||||
break;
|
||||
case '*':
|
||||
result += '[a-zA-Z0-9-.]*?';
|
||||
result += '[a-zA-Z0-9-_.]*?';
|
||||
break;
|
||||
case '?':
|
||||
result += '[a-zA-Z0-9-.]';
|
||||
result += '[a-zA-Z0-9-_.]';
|
||||
break;
|
||||
default:
|
||||
result += domain[i];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user