Browse Source

Fix: update domain wildcard to regex conversion

SukkaW 1 year ago
parent
commit
482b41664a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Build/lib/misc.ts

+ 2 - 2
Build/lib/misc.ts

@@ -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];