LearnNewsExamplesServices
Frontmatter
id9141
title[DevIndex] Fix Washington DC Location Resolution
stateClosed
labels
bugai
assigneestobiu
createdAtFeb 13, 2026, 12:58 PM
updatedAtFeb 13, 2026, 1:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/9141
authortobiu
commentsCount3
parentIssue9106
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 13, 2026, 1:16 PM

[DevIndex] Fix Washington DC Location Resolution

Closed v12.0.0 bugai
tobiu
tobiu commented on Feb 13, 2026, 12:58 PM

The current LocationNormalizer resolves "Washington DC" to "DC", which results in a broken flag image (e.g., dc.svg). We need to map "Washington DC", "Washington", and "DC" to "US" to ensure the United States flag is displayed correctly.

tobiu added the bug label on Feb 13, 2026, 12:58 PM
tobiu added the ai label on Feb 13, 2026, 12:58 PM
tobiu added parent issue #9106 on Feb 13, 2026, 12:58 PM
tobiu referenced in commit 5f26f26 - "fix: Map Washington DC variants to US in LocationNormalizer (#9141)" on Feb 13, 2026, 1:00 PM
tobiu
tobiu Feb 13, 2026, 1:06 PM

Input from Gemini 3 Pro:

✦ Expanding the scope of this fix to address additional failing location resolutions identified:

  • São Paulo: Handling special characters.
  • Australia: Missing from country regex (fixing "Canberra, ACT, Australia").
  • Cities: Amsterdam, Gurugram, Brooklyn, The Hague, Whangarei, Lisbon, Bonn, Sammamish, Bend.
  • Regions/States: California, Texas.

This will prevent incorrect fallbacks to state codes (e.g., WA, OR, NY) which result in broken flag images.

tobiu referenced in commit 05f8994 - "fix: Expand LocationNormalizer coverage (#9141)" on Feb 13, 2026, 1:15 PM
tobiu
tobiu Feb 13, 2026, 1:15 PM

Input from Gemini 3 Pro:

✦ I have expanded the LocationNormalizer logic to handle additional failing cases:

1. US State Code Heuristic Added a word-boundary check for 2-letter US state codes (e.g., "Columbus, OH" -> "US").

  • Included: OH, WA, OR, RI, NY, NJ, TX, FL, UT, AZ, NM, NV, MN, MI, IL, MO, TN, KY, WV, VA, NC, SC, GA, AL, MS, LA, AR, OK, KS, NE, SD, ND, WY, MT, VT, CT, MA, PA.
  • Excluded: CA (Canada), DE (Germany), IN (India), ID (Indonesia) to avoid major country code collisions.
  • Note: Minor collisions like IL (Israel), GA (Gabon), MT (Malta) are treated as US states in this context due to higher probability in user location strings.

2. Expanded City Map Added mappings for:

  • US: Columbus, Charlotte, Phoenix, Philadelphia, San Antonio, San Diego, Dallas, San Jose, Jacksonville, Indianapolis, Brooklyn, Sammamish, Bend, Hope (RI).
  • Regions: Hawaii (US), California (US), Texas (US).
  • International: São Paulo (BR), Amsterdam (NL), The Hague (NL), Gurugram (IN), Whangarei (NZ), Lisbon (PT), Bonn (DE), Copenhagen (DK), Stockholm (SE).

3. Country Regex Updates

  • Added Australia (AU) and Malta (MT) to the direct country matchers.

This should significantly reduce the number of broken flag images caused by unresolvable location strings.

tobiu
tobiu Feb 13, 2026, 1:16 PM

Input from Gemini 3 Pro:

✦ I have verified the changes and expanded the test cases. All requested locations should now resolve correctly. Closing the issue.

tobiu closed this issue on Feb 13, 2026, 1:16 PM
tobiu assigned to @tobiu on Feb 13, 2026, 1:18 PM