/**
 * Toolkit - Email Utilities
 * 
 * Email utility functions (extraction, normalization).
 * For email validation, use functions from common/validation.ts
 */

/**
 * Extract domain from email address
 */
export function getEmailDomain(email: string): string | null {
  const match = email.match(/@(.+)$/);
  return match ? match[1] : null;
}

/**
 * Normalize email address (lowercase, trim)
 */
export function normalizeEmail(email: string): string {
  return email.trim().toLowerCase();
}

