mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
fix parsed JSDoc author tag (#80898)
* fix parsed JSDoc author tag * fix author tag
This commit is contained in:
@@ -28,7 +28,15 @@ function getTagBodyText(tag: Proto.JSDocTagInfo): string | undefined {
|
||||
} else {
|
||||
return makeCodeblock(tag.text);
|
||||
}
|
||||
case 'author':
|
||||
// fix obsucated email address, #80898
|
||||
const emailMatch = tag.text.match(/(.+)\s<([-.\w]+@[-.\w]+)>/);
|
||||
|
||||
if (emailMatch === null) {
|
||||
return tag.text;
|
||||
} else {
|
||||
return `${emailMatch[1]} ${emailMatch[2]}`;
|
||||
}
|
||||
case 'default':
|
||||
return makeCodeblock(tag.text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user