Regex rejects IsPrint when combined with another character-class property
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
- 52/100
Hướng nghiên cứu
Start by reproducing the failure with the character-class patterns in the issue and running t/01.new.t, t/04.particles.t, t/05.contributor.t, and t/06.source.t on both the JVM and interpreter backends. Inspect the existing Unicode alias handling, especially the Is/is-prefix logic; done means IsPrint combined with \s is accepted and the affected tests pass on both backends.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
XML-Atom-App v0.0.5 fails under PerlOnJava because the regex engine rejects the valid Perl Unicode property alias \p{IsPrint} when it is combined with \s in a character class.
Reproduction
These patterns behave inconsistently:
-
qr/[\p{IsPrint}]/ succeeds.
-
qr/^[\p{IsPrint}]*$/ succeeds.
-
qr/[\p{IsPrint}\s]/ fails.
-
qr/^[\p{IsPrint}\s]*$/ fails with:
Unknown user-defined property name IsPrint in regex
The failure affects both the JVM and interpreter backends.
CPAN evidence
- Distribution: XML-Atom-App v0.0.5
- CPAN run: 20260928-091741-26386
- Failing tests: t/01.new.t, t/04.particles.t, t/05.contributor.t, t/06.source.t
- PerlOnJava result: 20/21 tests; 4/10 test programs failed
- System Perl result: all 56 upstream tests passed
The failing module code uses:
/^[\\p{IsPrint}\\s]*$/
The same compatibility failure appeared in earlier CPAN reports, including the 2026-08-26 and 2026-09-10 report runs.
Related work
Existing Unicode alias handling strips the Is/is prefix, and prior work addressed isAlpha-style aliases. This reproducer shows a remaining context-sensitive failure when the alias is followed by another property escape in the same character class.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 6
- Merge trung bình
- 4 giờ 45 phút
- Pull request đã merge (30 ngày)
- 180
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fglock/PerlOnJava
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:unicode bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fglock/PerlOnJava#1341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:runtime area:warnings bug high-impact
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fglock/PerlOnJava#1577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:backend area:runtime bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1554 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
objectionary/eolang.sty#184 ·
-
Remote IMAP SSL setting is not inherited by discovered folders, causing port 143 connectionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100