Skip to content

Fix CPAN control character and code attribute wrapper failures - #1906

Merged
fglock merged 1 commit into
masterfrom
feature/fix-regexp-assemble-medusa
Oct 27, 2026
Merged

fglock merged 1 commit into
masterfrom
feature/fix-regexp-assemble-medusa

Conversation

@fglock

@fglock fglock commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #1481 and #1448.

  • Preserve control characters when parsing qw strings while trimming ordinary whitespace.
  • Keep the original code reference stable while MODIFY_CODE_ATTRIBUTES handlers wrap or replace the glob, preventing recursive wrapper calls and preserving lazy compilation.
  • Add focused regression tests for both issues.

Validation

Keep control bytes in edge positions of qw lists and retain a stable code
reference while MODIFY_CODE_ATTRIBUTES replaces a named subroutine.

Fixes #1481
Fixes #1448

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <158243242+openai-codex[bot]@users.noreply.github.com>
@fglock
fglock marked this pull request as ready for review October 27, 2026 15:03
@fglock
fglock merged commit c7c805b into master Oct 27, 2026
2 checks passed
@fglock
fglock deleted the feature/fix-regexp-assemble-medusa branch October 27, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regexp::Assemble 0.38 fails literal control-character dump test

1 participant