Repository navigation
fix(cp): cut RIPE remark banner lines appended to org names - #329
Merged
Merged
Conversation
netravnen
force-pushed
the
fix/cp-cut-banner-remark
branch
from
November 25, 2026 13:38
3ab50d2 to
406b671
Compare
PeeringDB's RDAP import appends the first RIPE remark line to the registrant name with ", ". When that line is a section banner, the name carries it: net 44122 / org 45850 (AS207858) is named "<GIVEN_NAME> <SURNAME>, ==== IPv4 ====". stripRirNoticeText now cuts such banners, so every Name/Long Name derivation and the malformed-name check see the clean registrant name. Changes: - stripRirNoticeText cuts from ", " followed by a run of 2+ "=", "-", "#", "*", "~", "_" or "+". - Bump CP to 2.0.235. Security: - N/A Testing: - New stripRirNoticeText cases: "==== IPv4 ====", "-- AS35320 ETT--", "####" are cut; "Foo-Bar Ltd, Berlin" and a single ", -" are kept. - build_userscripts.py --check and node --check pass. - node --test in user.js: 611 tests, 610 pass, 1 skipped, 0 fail. - The 9 scratch name-normalization harnesses give identical output to master. Backwards Compatibility: - Only names with a comma followed by a banner run change. Assisted-by: Claude:claude-opus-5-5
netravnen
force-pushed
the
fix/cp-cut-banner-remark
branch
from
November 25, 2026 13:45
406b671 to
a7d91a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update Name now cuts RIPE remark banner lines that the RDAP import appended to an org name.
Why
Net 44122 / org 45850 (AS207858, UA) is named
<GIVEN_NAME> <SURNAME>, ==== IPv4 ====. The RIPE registrant ORG-DM202-RIPE is<GIVEN_NAME> <SURNAME>. The aut-num's only remark block starts with the section header==== IPv4 ====, followed by upstream and IX peer lines. PeeringDB's RDAP import (20c/rdap, the RIPE remarks step) appends the first remark line to the registrant name with", ", as with #323 and #328.Change
stripRirNoticeTextalso cuts from", "followed by a run of two or more=,-,#,*,~,_or+. All Name, Long Name and identity derivations andisRdapOrgNameMalformedgo through it, so Update Name on the net page also cleans the org.<GIVEN_NAME> <SURNAME>, ==== IPv4 ====<GIVEN_NAME> <SURNAME>Foo Ltd, -- AS35320 ETT--Foo LtdFoo-Bar Ltd, BerlinA+ Networks, -Testing
build_userscripts.py --checkandnode --checkpass.node --test: 611 tests, 610 pass, 1 skipped, 0 fail.Notes
Assisted-by: Claude:claude-opus-5-5