Repository navigation
fix(routing): New South Wales is Australia, Índia and U.S. are found, beber isn't a baby - #82
Conversation
… beber isn't a baby - 'Wales' inside 'New South Wales' gave the UK's 999 for a question naming Australia; 'New South Wales' now names Australia. - 'Índia': JavaScript's \b is ASCII-only, so no boundary before 'Í'; matched with a letter lookbehind instead. - 'U.S.' before '?' or at the end: \b after the last dot needed a word character. - PT 'bebê' as a prefix matched 'beber' and 'bebendo', tagging drinking-water questions as 'child'. Found by CodeRabbit on the Kotlin port, which copies these rules.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The change fixes four country-name and Portuguese term matching bugs and adds tests for them. No merge-blocking risk was identified. Pre-merge checks |
|
Four matching bugs in the offline emergency-number table and the Portuguese search terms. CodeRabbit found them on the native app's Kotlin port, which copies these rules, so the TS is fixed here and the Kotlin on fullnative-dev (749215b) with the same regexes.
\bis ASCII-only, no boundary before "Í")\bafter the last dot needs a letter)child("bebê" matched as a prefix of "beber")"Wales" alone still gives the UK, and "Indiana" gives nothing.
Tests: 7 new cases in
emergencyNumbers.test.tsandptQuery.test.ts.npm test1177/1177, typecheck clean. CodeRabbit (cr review --base main): no findings.Summary by CodeRabbit