Skip to content

Commit

Permalink
Fix EDTF regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Dec 16, 2024
1 parent eb5474b commit 6987897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/example.item.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"startDate": "Y-12424",
"endDate": "2016/2023",
"relatedDate": "2012T12:07",
"relatedDates": ["2007-03-01T13:00:00Z","-2012"]
"relatedDates": ["2007-03-01T13:00:00Z","-2012","-0043-05-22"]
}
2 changes: 1 addition & 1 deletion schemas/item.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"anyOf": [
{
"type": "string",
"pattern": "^Y?-?[0-9X]{4,}[?~%]?(-[01X][012X][?~%]?(-[0-3X][0-9X][?~%]?)?)?$",
"pattern": "^Y?-?[0-9X]{4,}[?~%]?(-[01X][0-9X][?~%]?(-[0-3X][0-9X][?~%]?)?)?$",
"$comment": "EDTF Year, Year-Month, Year-Month-Day"
},
{
Expand Down

0 comments on commit 6987897

Please sign in to comment.