Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[ENGG-1977] MV3: 2KB limit for regexFilter in DNR

Đang mở
#47 3 bình luận 5 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Một pull request liên quan đã được merge.

  • #1869 của @wrongsahil — đã merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Start by reproducing the Chrome declarativeNetRequest error with host-based regex rules and review the linked regex-rules documentation. Compare the suggested URL source conditions and redirect-rule approach against the affected replace-rule use cases. Done means supported rules no longer exceed the 2KB compiled regexFilter limit.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type:bug

When creating host regex rules Unchecked runtime.lastError: Rule with id 1 was skipped as the "regexFilter" value exceeded the 2KB memory limit when compiled. Learn more: https://developer.chrome.com/docs/extensions/reference/api/declarativeNetRequest#regex-rules

Possible Solutions

1. Using URL source conditions instead of HOST source conditions

If you are using HOST - EQUALS | CONTAINS | MATCHES | WILDCARD, then try switching it to URL source condition.

2. Try using Redirect Rule

Almost all the usecases that are supported by replace rule are also supported by Redirect Rule . Try creating a redirect rule instead

Some patterns to convert Replace rule into Redirect rule

Pattern 1

Current Replace Rule
CleanShot 2024-06-27 at 12 51 57@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 12 55 11@2x

Pattern 2

Current Replace Rule
CleanShot 2024-06-27 at 13 36 51@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 13 37 23@2x

Ngôn ngữ chính
TypeScript
Star
96
Fork
25
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của requestly/interceptor

Tất cả issue của requestly/interceptor

Issue tương tự

Thêm issue về TypeScript

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.