v1.0.25 修复值月九星数组下标越界的问题。
This commit is contained in:
2
lunar.js
2
lunar.js
@@ -1278,7 +1278,7 @@
|
||||
// 寅月起,所以需要-2
|
||||
var monthIndex = this._p.monthZhiIndex-2;
|
||||
if(monthIndex<0){
|
||||
monthIndex += 12
|
||||
monthIndex += 12;
|
||||
}
|
||||
var index = start-monthIndex-1;
|
||||
if(index<0){
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lunar-javascript",
|
||||
"version": "1.0.24",
|
||||
"version": "1.0.25",
|
||||
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user