Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function normalizeEmail(email?: string | null): string | null {
|
||||
if (!email) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const normalized = email.trim().toLowerCase();
|
||||
return normalized.length > 0 ? normalized : null;
|
||||
}
|
||||
Reference in New Issue
Block a user