Make order lookup by email tolerant of case and whitespace

main
No checks reported

Commit

Jaxson Sprinkles1mo ago

Normalize both the query and stored emails by removing all whitespace and casefolding before comparing, so ' Kai.Nguyen@Example.com ' or 'kai.nguyen @ example.com' match. A whitespace-only email is treated as missing, and the not-found error echoes the trimmed input.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M4KHGDF631V4069BWJCMXEBY