priscillatrevizan/regex-generator

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

オープン

#16 opened on 2025/10/11

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (11 件のフォーク)auto 404
enhancementgood first issuehacktoberfesthacktoberfest2025

Repository metrics

Stars
 (13 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド