v1.0.26 修复值月九星数组下标越界的问题。
This commit is contained in:
2
lunar.js
2
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);
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user