Skip to content

Commit

Permalink
Hotfix to allow 2023 as publication date
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Jan 5, 2023
1 parent 35bcb2c commit cbd428b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/doi.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ const Validations = buildValidations({
}),
validator('date', {
after: '999',
before: '2023',
before: '2024',
precision: 'year',
format: 'YYYY',
errorFormat: 'YYYY',
message: 'Must be a year between 1000 and 2023.',
message: 'Must be a year between 1000 and 2024.',
disabled: computed('model.{mode,state}', function () {
return (
this.model.get('state') === 'draft' ||
Expand Down

0 comments on commit cbd428b

Please sign in to comment.