From 1b1bddabedd145f651492cfcc035d1410b6829f6 Mon Sep 17 00:00:00 2001 From: Annie Zheng <76614878+AnnieZQH@users.noreply.github.com> Date: Wed, 7 Oct 2026 17:19:30 +0100 Subject: [PATCH] Fix timestamp format regex --- .../profiles/five-safes-crate/3_timestamp_format.ttl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rocrate_validator/profiles/five-safes-crate/3_timestamp_format.ttl b/rocrate_validator/profiles/five-safes-crate/3_timestamp_format.ttl index 64055a033..995c215ca 100644 --- a/rocrate_validator/profiles/five-safes-crate/3_timestamp_format.ttl +++ b/rocrate_validator/profiles/five-safes-crate/3_timestamp_format.ttl @@ -40,7 +40,7 @@ five-safes-crate:TimeStampFormat sh:description "End timestamps MUST follow the RFC 3339 standard." ; sh:path schema:endTime ; sh:minCount 0 ; - sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ; + sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ; sh:severity sh:Violation ; sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ; ] ; @@ -50,7 +50,7 @@ five-safes-crate:TimeStampFormat sh:description "Start timestamps MUST follow the RFC 3339 standard." ; sh:path schema:startTime ; sh:minCount 0 ; - sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ; + sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ; sh:severity sh:Violation ; sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ; ] . @@ -61,4 +61,4 @@ five-safes-crate:TimeStampFormat #=== MAY shapes ===# -# (none) \ No newline at end of file +# (none)