1 | /**
|
2 | * Truncates given string to the maximum characters count
|
3 | *
|
4 | * @param str An object that contains serializable values
|
5 | * @param max Maximum number of characters in truncated string (0 = unlimited)
|
6 | * @returns string Encoded
|
7 | */
|
8 | export declare function truncate(str: string, max?: number): string;
|
9 | /**
|
10 | * This is basically just `trim_line` from
|
11 | * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67
|
12 | *
|
13 | * @param str An object that contains serializable values
|
14 | * @param max Maximum number of characters in truncated string
|
15 | * @returns string Encoded
|
16 | */
|
17 | export declare function snipLine(line: string, colno: number): string;
|
18 | /**
|
19 | * Join values in array
|
20 | * @param input array of values to be joined together
|
21 | * @param delimiter string to be placed in-between values
|
22 | * @returns Joined values
|
23 | */
|
24 | export declare function safeJoin(input: any[], delimiter?: string): string;
|
25 | /**
|
26 | * Checks if the value matches a regex or includes the string
|
27 | * @param value The string value to be checked against
|
28 | * @param pattern Either a regex or a string that must be contained in value
|
29 | */
|
30 | export declare function isMatchingPattern(value: string, pattern: RegExp | string): boolean;
|
31 | //# sourceMappingURL=string.d.ts.map |
\ | No newline at end of file |