From 19de2547649e16de2e78bae4cd812e8da466f171 Mon Sep 17 00:00:00 2001 From: Akio <79924166+akiooo45@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:28:25 +0800 Subject: [PATCH] Optimize regular matching rules (#2188) --- data/category-ntp | 6 +++--- data/category-ntp-cn | 4 ++-- data/github | 2 +- data/hotstar | 2 +- data/openai | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/category-ntp b/data/category-ntp index 1c011f73..a3ce69f1 100644 --- a/data/category-ntp +++ b/data/category-ntp @@ -2,16 +2,16 @@ regexp:^time(.euro)?.apple.com$ # Facebook -regexp:^time([1-5])?.facebook.com$ +regexp:^time([1-5])?\.facebook\.com$ # Google regexp:^time([1-4])?.google.com$ # NIST: https://tf.nist.gov/tf-cgi/servers.cgi -regexp:^((((ut1-wwv)|(ntp\-(b|d|wwv))|(time(\-(([a-e]\-(g|b))|([a-e]\-wwv)))?)).nist.gov)|((ntp-c|ut1-time)|(utcnist(2|3)?)).colorado.edu)$ +^((((ut1-wwv)|(ntp\-(b|d|wwv))|(time(\-(([a-e]\-(g|b))|([a-e]\-wwv)))?))\.nist\.gov)|((ntp-c|ut1-time)|(utcnist(2|3)?))\.colorado\.edu)$ # NTP-servers: https://ntp-servers.net/servers.html -regexp:^ntp[0-7].ntp-servers.net$ +regexp:^ntp[0-7]\.ntp-servers\.net$ clock.isc.org ntp.fiord.ru diff --git a/data/category-ntp-cn b/data/category-ntp-cn index a10f238c..26910e3a 100644 --- a/data/category-ntp-cn +++ b/data/category-ntp-cn @@ -1,8 +1,8 @@ # Aliyun -regexp:^ntp([1-7])?.aliyun.com$ @cn +regexp:^ntp([1-7])?\.aliyun\.com$ @cn # Tencent -regexp:^ntp([1-5])?.tencent.com$ @cn +regexp:^ntp([1-5])?\.tencent\.com$ @cn cn.pool.ntp.org @cn ntp.neu.edu.cn @cn diff --git a/data/github b/data/github index 2216f623..ca136d15 100644 --- a/data/github +++ b/data/github @@ -26,4 +26,4 @@ thegithubshop.com blob.core.windows.net full:github-cloud.s3.amazonaws.com -regexp:github-production-release-asset-[0-9a-zA-Z]{6}\.s3\.amazonaws\.com +regexp:^github-production-release-asset-[0-9a-zA-Z]{6}\.s3\.amazonaws\.com$ diff --git a/data/hotstar b/data/hotstar index 2ed7e1b8..624da873 100644 --- a/data/hotstar +++ b/data/hotstar @@ -4,4 +4,4 @@ hotstar-labs.com hotstarext.com hsprepack.akamaized.net -regexp:^hses[1-7]?.akamaized.net$ +regexp:^hses[1-7]?\.akamaized\.net$ diff --git a/data/openai b/data/openai index 8e2d0f13..c9521df2 100644 --- a/data/openai +++ b/data/openai @@ -10,7 +10,7 @@ full:openaiapi-site.azureedge.net full:openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net full:openaicomproductionae4b.blob.core.windows.net full:production-openaicom-storage.azureedge.net -regexp:chatgpt-async-webps-prod-eastus-\d+\.webpubsub\.azure\.com$ +regexp:^chatgpt-async-webps-prod-eastus-\d+\.webpubsub\.azure\.com$ # tracking full:o33249.ingest.sentry.io @ads