From 0638aaf1deccd892cbc35deb9dd215177f82e999 Mon Sep 17 00:00:00 2001 From: 6tail <6tail@6tail.cn> Date: Sat, 17 Oct 2020 16:14:00 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.26=20=E4=BF=AE=E5=A4=8D=E5=80=BC=E6=9C=88?= =?UTF-8?q?=E4=B9=9D=E6=98=9F=E6=95=B0=E7=BB=84=E4=B8=8B=E6=A0=87=E8=B6=8A?= =?UTF-8?q?=E7=95=8C=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lunar.js b/lunar.js index 16001af..f9c185d 100644 --- a/lunar.js +++ b/lunar.js @@ -1281,7 +1281,7 @@ monthIndex += 12; } var index = start-monthIndex-1; - if(index<0){ + while(index<0){ index += 9; } return NineStar.fromIndex(index); diff --git a/package.json b/package.json index 1be2c56..a00bc88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lunar-javascript", - "version": "1.0.25", + "version": "1.0.26", "description": "lunar is a calendar library for Solar and Chinese Lunar.", "main": "index.js", "scripts": {