From 7230e8cffcbbcf5daacbf59ae6c0fc390ce7f586 Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Fri, 10 Jan 2020 16:34:59 +0800 Subject: [PATCH] Try to fix regex rules --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a0e263..8594abe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,12 +98,12 @@ jobs: - name: Filter valid domains run: | - cat proxy-sort.txt | awk '/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/proxylist - cat proxy-sort.txt | awk '!/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > proxy-filter.txt - cat direct-sort.txt | awk '/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/directlist - cat direct-sort.txt | awk '!/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > direct-filter.txt - cat reject-sort.txt | awk '/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/rejectlist - cat reject-sort.txt | awk '!/^([a-zA-Z0-9-\_]+\.)+[a-zA-Z0-9-]+$/{print $0}' > reject-filter.txt + cat proxy-sort.txt | awk '/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/proxylist + cat proxy-sort.txt | awk '!/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > proxy-filter.txt + cat direct-sort.txt | awk '/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/directlist + cat direct-sort.txt | awk '!/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > direct-filter.txt + cat reject-sort.txt | awk '/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > $GOPATH/src/$GEOSITE_REPO/data/rejectlist + cat reject-sort.txt | awk '!/^([a-zA-Z0-9[.-.][._.]]+\.)+[a-zA-Z0-9[.-.]]+$/{print $0}' > reject-filter.txt - name: Add list into appropriate category file run: |