Skip to content

cutText

cutText(text, max): string

Defined in: packages/core/src/normalise.ts:12

At most max UTF-16 units of text, cut so it never ends halfway through a character, with NUL and any lone surrogate replaced by U+FFFD: PostgreSQL can’t store either, so the collector refuses an event holding one.

string

number

string