mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Standard JS
This commit is contained in:
@@ -64,9 +64,10 @@ export const getTasks = function () {
|
||||
}
|
||||
|
||||
const isInvalidDate = function (date, dateFormat, excludes) {
|
||||
if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0)
|
||||
return true;
|
||||
return excludes.indexOf(date.format(dateFormat.trim())) >= 0;
|
||||
if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {
|
||||
return true
|
||||
}
|
||||
return excludes.indexOf(date.format(dateFormat.trim())) >= 0
|
||||
}
|
||||
|
||||
const getNextValidDate = function (date, dateFormat, excludes) {
|
||||
|
Reference in New Issue
Block a user