Skip to content

Commit 6635be9

Browse files
committed
Allowed for comma to separate seconds from fractions of seconds in timestamps.
1 parent c429269 commit 6635be9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rocrate_validator/profiles/five-safes-crate/must/12_check_phase.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ five-safes-crate:CheckValueStartTimeMustFollowISOStandard
8282
a sh:PropertyShape ;
8383
sh:name "StartTime" ;
8484
sh:path schema:startTime ;
85-
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})$" ;
85+
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})$" ;
8686
sh:severity sh:Violation ;
8787
sh:message "`CheckValue` --> `startTime` MUST follows the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
8888
] .
@@ -110,7 +110,7 @@ five-safes-crate:CheckValueEndTimeMustFollowISOStandard
110110
a sh:PropertyShape ;
111111
sh:name "EndTime" ;
112112
sh:path schema:endTime ;
113-
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})$" ;
113+
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})$" ;
114114
sh:severity sh:Violation ;
115115
sh:message "`CheckValue` --> `endTime` MUST follows the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
116116
] .

0 commit comments

Comments
 (0)