priscillatrevizan/regex-generator

[FEATURE] Add date validator generator (ISO and BR)

Open

#16 opened on Oct 11, 2025

View on GitHub
 (2 comments) (0 reactions) (1 assignee)JavaScript (11 forks)auto 404
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 like format ('iso'|'br') and strict (boolean). For strict=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.

Contributor guide