Cut forge text short between whole characters, never inside an emoji
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Mirroring openchronology/timeline-app failed with a 500: a pull request's text ended in 🤖 just past the 4000-character notes limit, so slicing kept half of the surrogate pair, and PostgreSQL refused the save ("Unicode low surrogate must follow a high surrogate"). clip() now backs off a split pair, for notes, titles and tags from GitHub, Forgejo and GitLab. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/27575052174f41389136553989fb601c069016bc
Open Cut forge text short between whole characters, never inside an emoji in the timeline