teqo-backup/src/lib/text.ts
Francisco Ignácio Fontoura Solla 4806c417c8 Engineering Pass 3: consolidate patterns and lock them with guards.
Fold duplicated campanha access, loaders, list/filter/form shells, and scripts into shared modules; reorganize utilities by domain; stabilize e2e; and document prevention-first audit workflow so the same smells cannot creep back in.
2026-07-29 06:11:29 -03:00

6 lines
371 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** `value.trim()` when it is a string, `''` otherwise (P3-I — was byte-identical in 4 collections). */
export const trimmedText = (value: unknown): string =>
typeof value === 'string' ? value.trim() : ''
/** One day in milliseconds — THE neutral spelling (P3-K; was ×3, one of them in `suggestionCatalog`'s public interface). */
export const DAY_MS = 86_400_000