Fix easylist regexp error

This commit is contained in:
Loyalsoldier 2020-04-07 14:57:17 +08:00 committed by GitHub
parent e5831eec05
commit 900d0e1c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ jobs:
curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt
curl -sSL $GEQ1AN_RULES_REJECT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+AdBlock/ {print $2}' >> temp-reject.txt curl -sSL $GEQ1AN_RULES_REJECT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+AdBlock/ {print $2}' >> temp-reject.txt
curl -sSL $LHIE1_RULES_REJECT_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+/ {print $2}' >> temp-reject.txt curl -sSL $LHIE1_RULES_REJECT_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+/ {print $2}' >> temp-reject.txt
curl -sSL $EASYLIST_and_CHINA | perl -ne '/^\|\|([^*].+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt curl -sSL $EASYLIST_and_CHINA | perl -ne '/^\|\|((?=.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt
curl -sSL $EASYLIST_PRIVACY | perl -ne '/^\|\|([^*].+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt curl -sSL $EASYLIST_PRIVACY | perl -ne '/^\|\|((?=.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt
- name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files - name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files
run: | run: |