Fix nested types

Co-authored-by: FlorianWoelki <FlorianWoelki@gmx.de>
This commit is contained in:
Sidharth Vinod
2022-08-25 11:58:43 +05:30
parent 5996e1e69d
commit 2f7930efb7

View File

@@ -197,7 +197,7 @@ export const parseGenericTypes = function (text) {
if (text.indexOf('~') != -1) {
cleanedText = cleanedText.replace(/~([^~].*)/, '<$1');
cleanedText = cleanedText.replace(/~([^~]*)$/, '$1>');
cleanedText = cleanedText.replace(/~([^~]*)$/, '>$1');
return parseGenericTypes(cleanedText);
} else {