We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439860f commit aea25faCopy full SHA for aea25fa
src/check_jsonschema/formats/implementations/rfc3339.py
@@ -34,19 +34,18 @@
34
-
35
(?:0[1-9]|1[0-2])
36
37
- (?:\d{2})
38
- (?:T|t)
+ (?:[0-3]\d)
+ (?:[Tt])
39
(?:[01]\d|2[0123])
40
:
41
(?:[0-5]\d)
42
43
44
# (optional) fractional seconds
45
- (?:(\.|,)\d+)?
+ (?:[\.,]\d+)?
46
# UTC or offset
47
(?:
48
- Z
49
- | z
+ [Zz]
50
| [+-](?:[01]\d|2[0123]):[0-5]\d
51
)
52
$
@@ -84,6 +83,8 @@ def validate(date_str: object) -> bool:
84
83
("basic", "2018-12-31T23:59:59Z"),
85
("in_february", "2018-02-12T23:59:59Z"),
86
("in_february_invalid", "2018-02-29T23:59:59Z"),
+ ("missing_t", "2018-12-31 23:59:59Z"),
87
+ ("invalid_day", "2018-12-41T23:59:59Z"),
88
89
90
print("benchmarking")
0 commit comments