Skip to content

fix(wikipedia): handle branded TLDs in extractBrandFromUrl#2557

Merged
HollywoodTonight merged 1 commit into
mainfrom
LLMO-5108
May 25, 2026
Merged

fix(wikipedia): handle branded TLDs in extractBrandFromUrl#2557
HollywoodTonight merged 1 commit into
mainfrom
LLMO-5108

Conversation

@HollywoodTonight
Copy link
Copy Markdown
Contributor

Summary

  • extractBrandFromUrl('hdfc.bank.in') was returning bank instead of hdfc because .bank wasn't recognized as a multi-part TLD prefix
  • Added bank, firm, gen, ind, res, nic to MULTI_PART_TLD_PREFIXES — these are India's registered ccSLD patterns (similar to .co.uk)
  • Root cause of HDFC Bank Wikipedia opportunity not being created (site 14558535-f7ff-4abc-b0c3-12962ba5e0ec)

Test plan

  • Existing 60 tests still pass
  • New test: hdfc.bank.inhdfc, icici.bank.inicici
  • New test: acme.firm.inacme, iitd.res.iniitd, example.nic.inexample
  • Re-run wikipedia-analysis audit for hdfc.bank.in after deploy

🤖 Generated with Claude Code

hdfc.bank.in was resolving to companyName=bank instead of hdfc because
.bank was not recognized as a multi-part TLD prefix. Add bank, firm,
gen, ind, res, nic to the prefix set (India ccSLD patterns).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@HollywoodTonight HollywoodTonight merged commit 2279b9b into main May 25, 2026
18 checks passed
@HollywoodTonight HollywoodTonight deleted the LLMO-5108 branch May 25, 2026 08:25
solaris007 pushed a commit that referenced this pull request May 25, 2026
## [1.450.2](v1.450.1...v1.450.2) (2026-05-25)

### Bug Fixes

* **wikipedia:** handle branded TLDs in extractBrandFromUrl ([#2557](#2557)) ([2279b9b](2279b9b))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.450.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants