Skip to content

fix(scoring): preserve Unicode in README summaries - #668

Merged
devin-ai-integration[bot] merged 1 commit into
FindAny:mainfrom
yousizaitianqiong:fix/readme-summary-unicode
Nov 22, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
FindAny:mainfrom
yousizaitianqiong:fix/readme-summary-unicode

Conversation

@yousizaitianqiong

Copy link
Copy Markdown
Contributor

Summary

  • Keep supplementary Unicode characters intact when truncating a README intro, selected section, or complete summary.
  • Retain the existing UTF-16 length limits and the ellipsis. If a surrogate pair crosses the cut, omit the complete pair.

This addresses the public TypeScript parser portion of #622. The issue also covers truncation in the server component.

Validation

  • The new cases find unpaired surrogates at all three cut points on main. The two controls pass there. All five cases pass with the patch.
  • TypeScript typecheck and the full scoring suite pass with 379 tests. The rating fixture regenerates byte-for-byte.
  • The original scoring boundary gate passes on Linux. The Go scoring suite and the Python suite also pass.

AI assistance was used to prepare the patch and tests.

@devin-ai-integration
devin-ai-integration Bot merged commit 455e5b9 into FindAny:main Nov 22, 2026
3 checks passed
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.

2 participants