Skip to content

Commit 79cd802

Browse files
committed
ci: fix yml error
Signed-off-by: Charles Chin <eallion.s+github@gmail.com>
1 parent fcfcb4a commit 79cd802

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ jobs:
4343
rm source/laylavish/uBlockOrigin-HUGE-AI-Blocklist/noai_hosts.txt
4444
mv reverse_url.txt tools/reverse_url
4545
46-
# 合并所有列表
47-
find . -type f -name "*.txt" -exec sh -c 'cat "$0"; echo' {} \; > tools/uBlacklist
48-
4946
# Issue # 48
5047
sed -i '/^http:\/\//d' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
51-
sed -i 's|/.*\/(?:m|wap)\..*/|/.*\/(?:(?!m\.douban\.com)(?:m|wap)\..*)/|g' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
48+
49+
# Issue # 63
50+
perl -i -pe 's#\Q/.*\/(?:m|wap)\..*/##g' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
51+
sed -i '$a\/.*\/(?:(?!m\.douban\.com)(?:m|wap)\..*/' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
52+
53+
# 合并所有列表
54+
find . -type f -name "*.txt" -exec sh -c 'cat "$0"; echo' {} \; > tools/uBlacklist
5255
5356
cd tools
5457
mv uBlacklist uBlacklist.txt

0 commit comments

Comments
 (0)