1
0
mirror of synced 2025-12-17 02:28:05 +08:00

v1.0.26 修复值月九星数组下标越界的问题。

This commit is contained in:
6tail
2020-10-17 16:14:00 +08:00
parent bd9f0f4086
commit 0638aaf1de
2 changed files with 2 additions and 2 deletions

View File

@@ -1281,7 +1281,7 @@
monthIndex += 12;
}
var index = start-monthIndex-1;
if(index<0){
while(index<0){
index += 9;
}
return NineStar.fromIndex(index);

View File

@@ -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": {