Skip to content

Refactor RFC3986 regexps to make more readable - #46

Merged
nobu merged 1 commit into
ruby:masterfrom
nobu:uri-regexps
Jun 13, 2023
Merged

nobu merged 1 commit into
ruby:masterfrom
nobu:uri-regexps

Conversation

@nobu

@nobu nobu commented Oct 14, 2022

Copy link
Copy Markdown
Member

No description provided.

@nobu
nobu force-pushed the uri-regexps branch 3 times, most recently from 2f4ea58 to 6efa00b Compare June 3, 2023 11:25
@nobu
nobu requested a review from nurse June 13, 2023 03:25
@nobu
nobu merged commit c1d1757 into ruby:master Jun 13, 2023
@nobu
nobu deleted the uri-regexps branch June 13, 2023 03:25
jinroq added a commit to jinroq/uri that referenced this pull request Nov 24, 2026
idna_data.rb held the IDNA Mapping Table and the other Unicode data of
IDNA, 332KB. The status and the mapping of each code point are now
derived as UTS ruby#46 section 6 describes, from what Ruby has: NFKC and
case folding for NFKC_Casefold, and the character properties for the
base valid set. Marks and viramas come from Ruby as well, so
idna_data.rb now holds only the Bidi_Class and Joining_Type values that
the Bidi Rule and CONTEXTJ need, 17KB. Bidi_Class L, the class of most
valid code points, is no longer listed.

For every code point that the running Ruby knows, from Ruby 2.5
(Unicode 10.0) to 4.1 (Unicode 17.0), the derived status and mapping
are those of IdnaMappingTable.txt 18.0. A code point added since the
Unicode version of Ruby is unassigned, so disallowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.

2 participants