Expand description
Display text and public asset URL validation helpers. Public display text and asset URL validation helpers.
Aster services often expose runtime branding or UI-shell configuration such as titles, descriptions, favicons, wordmarks, and provider icons. Product crates still own the concrete keys, defaults, and visibility rules. This module only centralizes the repeated mechanics for trimming bounded display text, rejecting control characters, and validating asset URL strings that are safe to place into generated frontend HTML.
Functionsยง
- display_
text_ or_ default - Returns a normalized display string or a product default.
- is_
public_ asset_ url - Returns whether a value is accepted by
normalize_public_asset_url. - normalize_
bounded_ display_ text - Normalizes a short display text value.
- normalize_
public_ asset_ url - Normalizes a public frontend asset URL.
- public_
asset_ url_ or_ default - Returns a public asset URL or a product default.
- strip_
control_ chars - Removes Unicode control characters from a display string.