mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
Added default stylesheet and less structure to create new themes
This commit is contained in:
@@ -94,8 +94,9 @@ var getEndDate = function(prevTime, dateFormat, str){
|
||||
str = str.trim();
|
||||
|
||||
// Check for actual date
|
||||
if(moment(str,dateFormat,true).isValid()){
|
||||
return moment(str,dateFormat).toDate();
|
||||
if(moment(str,dateFormat.trim(),true).isValid()){
|
||||
|
||||
return moment(str,dateFormat.trim()).toDate();
|
||||
}
|
||||
|
||||
var d = moment(prevTime);
|
||||
|
Reference in New Issue
Block a user