Skip to content

five-on-it / apps/client/src/ui/telemetry / scrub

Function: scrub() ​

scrub(text, max?): string

Defined in: apps/client/src/ui/telemetry.ts:69

A text with what could tell who the player is taken out: query strings (tokens, join links), e-mail addresses, long tokens, and the user's folder in a path (C:\Users\ada, /home/ada, /Users/ada); cut at max characters.

Parameters ​

text ​

string

max? ​

number = 8000

Returns ​

string