AdguardTeam / AdguardTeam/FiltersRegistry

`--strip-generated-meta` should narrow all stripping to `platforms/`

Đang mở
#1,232 1 bình luận 0 reaction 1 người được giao Được @mu-hun nhận Xem trên GitHub
Ngôn ngữ chính
Adblock Filter List
Star
358
Fork
75
Merge trung bình
23 giờ 37 phút
Pull request đã merge (30 ngày)
9

Mô tả

> issued from: https://github.com/AdguardTeam/FiltersRegistry/pull/1226#discussion_r3782720598

In `scripts/build/strip-generated-meta.ts`, files are currently matched by filename only, without any folder restrictions. `walkAndStrip` strips any `.txt` file inside any directory named `filters`, and any `filters.json`/`filters.js` (working on #1208) by name, regardless of where in the tree they sit.

We should only strip `.txt` files and `filters.json`/`filters.js` files when they have a `platforms/` ancestor in their path. Files under the source `filters/` tree should never be touched, regardless of what root the function is called with.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.