Fix nested types

Co-authored-by: FlorianWoelki <FlorianWoelki@gmx.de>
This commit is contained in:
Sidharth Vinod 2022-08-25 08:49:20 +05:30
parent c37ff47ee3
commit 5996e1e69d
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 2 additions and 2 deletions

View File

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