digital-preservation / csv-schema

CSV Schema
http://digital-preservation.github.io/csv-schema
Mozilla Public License 2.0
98 stars 33 forks source link

Incorrect RegEx for XsdTimezoneComponent #35

Open C-Bookie opened 3 years ago

C-Bookie commented 3 years ago

Reading section 3.2.7.3 of XMLSCHEMA-2, I belive that XsdTimezoneComponent should match '+00:00' & '-00:00', Reading as ((\+|-)(0[0-9]|1[0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)? instead of ((\+|-)(0[1-9]|1[0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?