Skip to content

fix(regex): preserve strict folds in negative classes - #1075

Draft
fglock wants to merge 2 commits into
fix/phase36-joni-aa-safe-siblingsfrom
fix/phase36-joni-aa-negative-safe-siblings
Draft

fix(regex): preserve strict folds in negative classes#1075
fglock wants to merge 2 commits into
fix/phase36-joni-aa-safe-siblingsfrom
fix/phase36-joni-aa-negative-safe-siblings

Conversation

@fglock

@fglock fglock commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • isolate Perl ASCII-strict negative-class sibling behavior
  • retain safe fold siblings in negative classes without broadening forbidden folds
  • add direct forked-Joni coverage for the native behavior

Validation

  • canonical Perl reducer: 12/12
  • direct Joni and existing focused gates: 14/14
  • warning-free full make: passed

Notes

This is stacked on the positive safe-sibling PR. Original Joni and JCodings copyright and authorship notices are preserved.

fglock and others added 2 commits August 18, 2026 23:54
Add a system-Perl-first reducer for negated classes that must exclude safe
non-ASCII fold siblings under /aa while retaining ASCII and unrelated members.

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

Co-Authored-By: OpenAI Codex <codex@openai.com>
Enumerate complete character-class fold relations, then reject strict-mode
callbacks whenever any output code point crosses the ASCII boundary.

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

Co-Authored-By: OpenAI Codex <codex@openai.com>
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.

1 participant