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

[BUG?] possible issues in internal/re.js

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

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

Start with internal/re.js, especially lines 73-87, and compare the BUILD, FULLPLAIN, LOOSEPLAIN, and XRANGEPLAIN definitions with compose-regexp. Verify whether BUILD captures content and whether the differing v? prefixes are intentional; done means confirming the behavior and documenting or correcting each issue.

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

Mô tả

Bug

What / Why

I've been porting internal/re.js to compose-regexp, for personal use as a vendored-in dep, because raw regexp concatenation hurts my eyes, and I've found a couple of things that strike me as possible bugs, around L73-L87... namely:

  • BUILD is supposed not to capture according to the comment, but it does capture its content.
  • the v? prefix in FULLPLAIN is different from those in LOOSEPLAIN and XRANGEPLAIN(LOOSE)? ([v=\\s]*).

Who

  • @isaacs
Ngôn ngữ chính
JavaScript
Star
5.5k
Fork
607
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 npm/node-semver

Tất cả issue của npm/node-semver

Issue tương tự

Thêm issue về JavaScript

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.