caplink-saas-ui-shared-component-library 1.77.1 → 1.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles string value normalization including truncation and mask validation
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Normalizes a string value by truncating
|
|
6
|
+
* Normalizes a string value by removing control characters and truncating to maximum length
|
|
7
7
|
* @param value - The string to normalize
|
|
8
8
|
* @param maxLength - Maximum allowed length (defaults to COLUMN_STRING_LIMIT)
|
|
9
9
|
* @returns Normalized string
|
|
@@ -11,5 +11,6 @@
|
|
|
11
11
|
* @example
|
|
12
12
|
* normalizeString('Hello World', 1200) // 'Hello World'
|
|
13
13
|
* normalizeString('A'.repeat(1500), 1200) // Returns first 1200 characters
|
|
14
|
+
* normalizeString('Hello\nWorld', 1200) // 'Hello World' (newline replaced with space)
|
|
14
15
|
*/
|
|
15
16
|
export declare function normalizeString(value: string, maxLength?: number): string;
|