mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix nested types
Co-authored-by: FlorianWoelki <FlorianWoelki@gmx.de>
This commit is contained in:
parent
5996e1e69d
commit
2f7930efb7
@ -197,7 +197,7 @@ export const parseGenericTypes = function (text) {
|
|||||||
|
|
||||||
if (text.indexOf('~') != -1) {
|
if (text.indexOf('~') != -1) {
|
||||||
cleanedText = cleanedText.replace(/~([^~].*)/, '<$1');
|
cleanedText = cleanedText.replace(/~([^~].*)/, '<$1');
|
||||||
cleanedText = cleanedText.replace(/~([^~]*)$/, '$1>');
|
cleanedText = cleanedText.replace(/~([^~]*)$/, '>$1');
|
||||||
|
|
||||||
return parseGenericTypes(cleanedText);
|
return parseGenericTypes(cleanedText);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user