Skip to content

Commit 3a35a5d

Browse files
committed
Added demo/comparison app
1 parent 795d6f9 commit 3a35a5d

28 files changed

Lines changed: 1977 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ fastlane/test_output
8989

9090
iOSInjectionProject/
9191

92-
Sources/.DS_Store
92+
.DS_Store
9393

9494
Package.resolved

CLAUDE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,18 @@ swift test
1313

1414
# Run tests with code coverage
1515
swift test --enable-code-coverage
16+
17+
# Run a single test class
18+
swift test --filter EmailSyntaxValidatorTests
19+
20+
# Run a single test method
21+
swift test --filter EmailSyntaxValidatorTests/testDotAtomLocalPart
1622
```
1723

24+
## DemoApp
25+
26+
The `DemoApp/` directory contains a SwiftUI iOS app that compares email validation methods across ~150 test cases. Open `DemoApp/EmailValidation.xcodeproj` in Xcode to build and run on iOS Simulator.
27+
1828
## Architecture Overview
1929

2030
SwiftEmailValidator is an RFC-compliant email syntax validator supporting international email addresses. It validates email format without requiring network access.
@@ -54,3 +64,11 @@ SwiftEmailValidator is an RFC-compliant email syntax validator supporting intern
5464
- Returns `nil` for invalid input rather than throwing
5565
- Domain validation is pluggable via closure parameter
5666
- Character validation uses pre-built `CharacterSet` instances for efficiency
67+
68+
### RFC Standards Implemented
69+
70+
- RFC 822: Standard for the format of ARPA Internet text messages
71+
- RFC 2047: MIME Part Three - Message header extensions for non-ASCII text
72+
- RFC 5321: Simple Mail Transfer Protocol (SMTP)
73+
- RFC 5322: Internet Message Format
74+
- RFC 6531: SMTP Extension for Internationalized Email

0 commit comments

Comments
 (0)