mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
Fifteen domain schema files each declared z.string().min(1), eight of them as boundedTextSchema although it bounds nothing. They now share nonEmptyTextSchema from src/domain/textSchemas.ts; the one trimming copy in reconstructionCoverage.ts is renamed trimmedTextSchema. Three private UTF-8 prefix truncators (gdb recent MI records, rizin diagnostics, environment replay) and src/process/boundedUtf8Text.ts are replaced by utf8HeadExcerpt in src/domain/utf8HeadExcerpt.ts, which encodes only the retained prefix and returns a slice of the source text.
8 lines
239 B
TypeScript
8 lines
239 B
TypeScript
import { z } from "zod";
|
|
|
|
/**
|
|
* A string with at least one UTF-16 code unit. It bounds nothing else: apply a
|
|
* real length limit where a format, protocol or resource requires one.
|
|
*/
|
|
export const nonEmptyTextSchema = z.string().min(1);
|