Skip to content

fix(agent): preserve Unicode letters in name matching - #275

Open
mlubbad wants to merge 24 commits into
trycompai:mainfrom
mlubbad:fix/unicode-name-matching
Open

mlubbad wants to merge 24 commits into
trycompai:mainfrom
mlubbad:fix/unicode-name-matching

Conversation

@mlubbad

@mlubbad mlubbad commented Nov 23, 2026

Copy link
Copy Markdown

Problem

normalise() strips everything outside ASCII letters and digits. As a result, Arabic names can normalise to an empty string and fail to match even an identical name.

Change

Use Unicode character classes to keep letters, marks and decimal digits, and normalise canonically equivalent spellings with NFC. Ignore optional Arabic vowel marks without folding distinct letters or changing search-term generation or domain parsing. Reject strings with no letter or digit after cleaning.

Verification

bun test apps/agent/test/names.spec.ts: 17 passed. Added cases for vocalised Arabic, distinct person and company names, canonical accents, a non-Arabic Indic script and marks-only input.

carhartlewis and others added 24 commits August 7, 2026 11:38
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
crm-app Skipped Skipped Nov 23, 2026 8:10am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – crm-app November 23, 2026 08:10 Inactive
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@mlubbad is attempting to deploy a commit to the Comp AI - PoC Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
github-actions Bot changed the base branch from release to main November 23, 2026 08:10
@github-actions

Copy link
Copy Markdown
Contributor

Retargeted this onto main.

release is the default branch so that a plain clone runs the last tagged release, but nothing merges into it — it is fast-forwarded onto the tag by the Release workflow and that is all. Changes go to main, and reach release when a release is cut.

Nothing is wrong with your branch. If the diff now shows commits that are already on main, rebase and force-push:

git fetch origin main
git rebase origin/main
git push --force-with-lease

@comp-review

comp-review Bot commented Nov 23, 2026

Copy link
Copy Markdown

Comp Review · ccf32c36d9e3

Human approval · No human approval required.

Codex review · Pending.

This branch was previously deployed

1 inactive deployment
Preview – crm-app — ccf32c36 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants