11 lines
247 B
JavaScript
11 lines
247 B
JavaScript
"use strict";
|
|
function truncateString(str) {
|
|
const maxLength = 400;
|
|
if (str.length > maxLength) {
|
|
return str.substring(0, maxLength) + "...";
|
|
}
|
|
return str;
|
|
}
|
|
exports.truncateString = truncateString;
|
|
//# sourceMappingURL=strings.js.map
|