assisrafael / assisrafael/angular-input-masks

REGEX ISO DATE

Open
#327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

o regex da função isISODateString esta incorreto causando a não formatação correta da data no load inicial do campo, segue regex correto

`/^(?:[1-9]\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:Z|[+-][01]\d:[0-5]\d)$/`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.