Module string

Source
Expand description

String validation and formatting utilities

Functionsยง

sanitize
Sanitizes a string by removing control characters
truncate
Truncates a string to a maximum length with ellipsis
validate_length
Validates string length constraints
validate_non_empty
Validates that a string is not empty after trimming