Skip to content

Commit

Permalink
Earliest full Hebrew year for HebrewCalendar.calendar() is 3762
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Jul 24, 2020
1 parent 61d452e commit a7759d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/core",
"version": "2.2.2",
"version": "2.2.3",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
"Eyal Schachter (https://github.com/Scimonster)",
Expand Down
2 changes: 1 addition & 1 deletion src/hebcal.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function getStartAndEnd(options) {
isHebrewYear ? new HDate().getFullYear() : new Date().getFullYear();
if (isNaN(theYear)) {
throw new RangeError(`Invalid year ${options.year}`);
} else if (isHebrewYear && theYear < 3760) {
} else if (isHebrewYear && theYear < 3762) {
throw new RangeError(`Invalid Hebrew year ${theYear}`);
} else if (theYear < 1) {
throw new RangeError(`Invalid Gregorian year ${theYear}`);
Expand Down

0 comments on commit a7759d5

Please sign in to comment.