Skip to content

Commit bf0f6b5

Browse files
committed
add maxLength check
1 parent 6dd34ba commit bf0f6b5

File tree

1 file changed

+1
-1
lines changed
  • plugins/browser-plugin-error-tracking/src

1 file changed

+1
-1
lines changed

plugins/browser-plugin-error-tracking/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @returns The truncated string
77
*/
88
export function truncateString(string?: string, maxLength: number = 8192): string | undefined {
9-
if (string && string.length > 8192) {
9+
if (string && string.length > maxLength) {
1010
const truncatedString = string.substring(0, maxLength);
1111
return truncatedString;
1212
}

0 commit comments

Comments
 (0)