docs: tighten the display-text notes

Name routeId among the canonical analyst IDs in CURRENT-STATE, say what the
changelog entry changes for users, and drop the comment that repeated the
canonical-field doc.
This commit is contained in:
German Khokhlov committed 2026-11-10 15:34:32 +04:00
1 parent 3521c96172
commit 12a5630991
4 files changed
+15 -18

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
/** Bounded, single-line external display text; it remains untrusted source data. */
/** One-line text capped at `maxLength` without splitting a surrogate pair. Still untrusted. */
export function normalizeDisplayText(value, maxLength = 180) {
if (value == null || typeof value === 'object' || typeof value === 'function')
return '';