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