9705b6c
1
2
3
4
5
6
7
8
9
10
11
const MAX_CHAR = 255; function truncateText(text) { if (text.length > MAX_CHAR) { return `${text.slice(0, MAX_CHAR)}... [text truncated for brevity]`; } return text; } module.exports = truncateText;