Feature/SW-2538 redis api sentry * Add fingerprint to be able to differentiate JSON.parse errors * update deploy script * use status over deprecated error function in elysia * use t3-env createFinalSchema for extra validation Approved-by: Anton Gunnarsson
4 lines
149 B
TypeScript
4 lines
149 B
TypeScript
export function truncate(value: string, maxLength = 10): string {
|
|
return value.length > maxLength ? `${value.slice(0, maxLength)}...` : value;
|
|
}
|