mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
fix review commets
This commit is contained in:
parent
0981b66a5f
commit
b7c889bb70
@ -172,8 +172,8 @@ export const isInvalidDate = function (date, dateFormat, excludes, includes) {
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
excludes.includes('weekends') &&
|
excludes.includes('weekends') &&
|
||||||
(date.isoWeekday() == WEEKEND_START_DAY[weekend] ||
|
(date.isoWeekday() === WEEKEND_START_DAY[weekend] ||
|
||||||
date.isoWeekday() == WEEKEND_START_DAY[weekend] + 1)
|
date.isoWeekday() === WEEKEND_START_DAY[weekend] + 1)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -195,10 +195,6 @@ export const setWeekend = function (startDay) {
|
|||||||
weekend = startDay;
|
weekend = startDay;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getWeekend = function () {
|
|
||||||
return weekend;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: fully document what this function does and what types it accepts
|
* TODO: fully document what this function does and what types it accepts
|
||||||
*
|
*
|
||||||
@ -797,7 +793,6 @@ export default {
|
|||||||
setWeekday,
|
setWeekday,
|
||||||
getWeekday,
|
getWeekday,
|
||||||
setWeekend,
|
setWeekend,
|
||||||
getWeekend,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user