mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Added conditional to fallback to old style
This commit is contained in:
@@ -331,6 +331,12 @@ const drawClass = function(elem, classDef) {
|
||||
let returnType = parsedText[6] ? ' : ' + parsedText[6] : '';
|
||||
displayText =
|
||||
visibility + methodName + '(' + parameterType + ' ' + parameterName + ')' + returnType;
|
||||
} else {
|
||||
let methodEnd = displayText.indexOf(')') + 1;
|
||||
classifier = displayText.substring(methodEnd, methodEnd + 1);
|
||||
if (classifier !== '' && classifier !== ' ') {
|
||||
displayText = displayText.replace(classifier, '');
|
||||
}
|
||||
}
|
||||
|
||||
switch (classifier) {
|
||||
|
Reference in New Issue
Block a user