Skip to content

Commit

Permalink
Merge pull request #66 from yxhong-tw/master
Browse files Browse the repository at this point in the history
Fix error of research year range
  • Loading branch information
elmmaple authored Oct 26, 2023
2 parents 8f3697b + 93812e6 commit 81631ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/res/data/research.js
Original file line number Diff line number Diff line change
Expand Up @@ -3925,7 +3925,7 @@ const schemaCheck = () => {
const endYr = new Date(Date.now()).getFullYear()
if (!validator(research.year, schema.items.properties.year.type) ||
research.year < startYr ||
research.year > endYr) {
research.year > endYr + 1) {
console.error(research)
const err = `research.year must be in range [${startYr}, ${endYr}].`
throw new Error(err)
Expand Down

0 comments on commit 81631ca

Please sign in to comment.