Skip to content

fix(cp): cut RIPE remark banner lines appended to org names - #329

Merged
netravnen merged 1 commit into
masterfrom
fix/cp-cut-banner-remark
Nov 25, 2026
Merged

netravnen merged 1 commit into
masterfrom
fix/cp-cut-banner-remark

Conversation

@netravnen

@netravnen netravnen commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

stripRirNoticeText also cuts from ", " followed by a run of two or more =, -, #, *, ~, _ or +. All Name, Long Name and identity derivations and isRdapOrgNameMalformed go through it, so Update Name on the net page also cleans the org.

Input Result
<GIVEN_NAME> <SURNAME>, ==== IPv4 ==== <GIVEN_NAME> <SURNAME>
Foo Ltd, -- AS35320 ETT-- Foo Ltd
Foo-Bar Ltd, Berlin unchanged
A+ Networks, - unchanged (single dash)

Testing

  • build_userscripts.py --check and node --check pass.
  • node --test: 611 tests, 610 pass, 1 skipped, 0 fail.
  • The scratch name-normalization harnesses give identical output to master.

Notes

Assisted-by: Claude:claude-opus-5-5

@netravnen netravnen added bug llm-built userscript Tampermonkey/Greasemonkey userscript changes labels Nov 25, 2026
@netravnen
netravnen force-pushed the fix/cp-cut-banner-remark branch from 3ab50d2 to 406b671 Compare November 25, 2026 13:38
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
netravnen force-pushed the fix/cp-cut-banner-remark branch from 406b671 to a7d91a1 Compare November 25, 2026 13:45
@netravnen
netravnen merged commit a7d91a1 into master Nov 25, 2026
2 checks passed
@netravnen
netravnen deleted the fix/cp-cut-banner-remark branch November 25, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug llm-built userscript Tampermonkey/Greasemonkey userscript changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant