mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43: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 (
|
||||
excludes.includes('weekends') &&
|
||||
(date.isoWeekday() == WEEKEND_START_DAY[weekend] ||
|
||||
date.isoWeekday() == WEEKEND_START_DAY[weekend] + 1)
|
||||
(date.isoWeekday() === WEEKEND_START_DAY[weekend] ||
|
||||
date.isoWeekday() === WEEKEND_START_DAY[weekend] + 1)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
@ -195,10 +195,6 @@ export const setWeekend = function (startDay) {
|
||||
weekend = startDay;
|
||||
};
|
||||
|
||||
export const getWeekend = function () {
|
||||
return weekend;
|
||||
};
|
||||
|
||||
/**
|
||||
* TODO: fully document what this function does and what types it accepts
|
||||
*
|
||||
@ -797,7 +793,6 @@ export default {
|
||||
setWeekday,
|
||||
getWeekday,
|
||||
setWeekend,
|
||||
getWeekend,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user