From 93812e68452c05c5279c6bc9c507938746165be4 Mon Sep 17 00:00:00 2001 From: yxhong-tw Date: Thu, 26 Oct 2023 17:15:12 +0800 Subject: [PATCH] Fix error of research year range --- src/res/data/research.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/res/data/research.js b/src/res/data/research.js index 12dc4e6..dc62d54 100644 --- a/src/res/data/research.js +++ b/src/res/data/research.js @@ -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)