mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-12-26 04:54:13 +08:00
fixed grep regexp
This commit is contained in:
parent
99f4a3f36f
commit
d1ddb676f0
@ -41,8 +41,9 @@ echo -e "${GREEN}>>> Finished Chinalist ${NC}"
|
|||||||
|
|
||||||
echo -e "${GREEN}>>> generating AdBlock domains list...${NC}"
|
echo -e "${GREEN}>>> generating AdBlock domains list...${NC}"
|
||||||
curl -sSL $ADBLOCK_DOMAINS_URL \
|
curl -sSL $ADBLOCK_DOMAINS_URL \
|
||||||
| grep -eov '^(\d{1,3}\.){3}\d{1,3}' \
|
| grep -Eov '^(\d{1,3}\.){3}\d{1,3}' \
|
||||||
| grep -eov '^[^.]$' \
|
| grep -Eov '^[^.]+$' \
|
||||||
|
| grep -eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \
|
||||||
> $GOPATH/src/$GEOSITE_REPO/data/adblocklist
|
> $GOPATH/src/$GEOSITE_REPO/data/adblocklist
|
||||||
|
|
||||||
# | grep -eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \
|
# | grep -eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user