diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3678c99d52..f8f636843d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: - name: Get and add reject domains from @h2y/Shadowrocket-ADBlock-Rules into category-ads-all run: | cd $GOPATH/src/$GEOSITE_REPO/data - curl -sSL $ADBLOCK_URL | grep -Eev '^\d{1,3}(\.\d{1,3}){3}' > adblockreject + curl -sSL $ADBLOCK_URL | awk '!/[0-9]+$/ { print }' > adblockreject echo "include:adblockreject" >> category-ads-all - name: Build geosite.dat file