mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
3521c96172
commit
12a5630991
4 files changed
+15
-18
No files matched your search
@@ -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 '';
|
||||
|
||||
Reference in new issue
Block a user