You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse.kt
### Changes Made
- **Added regex pre-validation**
- **Restructured logic** so `UUID.fromString()` is only called when regex matches
- **Exceptions are no longer default flow** - only thrown in rare edge cases where regex passes but UUID parsing fails
- **Maintained safety** with try/catch around `UUID.fromString()`
### Testing
- All existing test cases unchanged and continue to pass
- Positive test: valid UUID strings → UUID objects
- Negative test: invalid strings → remain String type
0 commit comments