priscillatrevizan/regex-generator
View on GitHub[FEATURE] Add date validator generator (ISO and BR)
Open
#16 opened on Oct 11, 2025
enhancementgood first issuehacktoberfesthacktoberfest2025
Repository metrics
- Stars
- (13 stars)
- PR merge metrics
- (PR metrics pending)
Description
1. Request Type
- ✨ Feature Request
2. General Description
This issue proposes adding a new regex generator to the project: Date validators for ISO (YYYY-MM-DD) and BR (DD/MM/YYYY) formats with an optional strict mode to validate month/day ranges including leap years.
3. Specific Information
- Problem to Solve: Date inputs need consistent validation; a generator simplifies reuse across forms.
- Suggested Solution: Implement
generateDateRegex(options)with options likeformat('iso'|'br') andstrict(boolean). Forstrict=true, either create a comprehensive regex covering month lengths and leap years or suggest additional JS validation after regex match.
Important:
When requesting this task from the maintainer, you can suggest applicable labels for this issue.