IHImplementation handoffFOR REVIEW
Draft change: normalize a lookup email
This small illustrative function trims whitespace, lowercases the input and rejects an empty value. It does not validate deliverability, authorization or the full email format.
The three checks below are proposed, not executed. An engineer must review, run tests and approve any repository change or deployment. This sample executes no code.
export function normalizeLookupEmail(value: string) {
const email = value.trim().toLowerCase();
if (!email) throw new Error("Email is required");
return email;
}Ironhand AIPrepared as an example. Not sent.
