@openpkg-ts/sdk 0.50.1 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1366,10 +1366,8 @@ function parseExamplesFromTags(tags) {
|
|
|
1366
1366
|
function stripParamSeparator(text) {
|
|
1367
1367
|
if (!text)
|
|
1368
1368
|
return;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
stripped = parts[0].trim();
|
|
1372
|
-
return stripped || undefined;
|
|
1369
|
+
const stripped = text.replace(/^-\s*/, "").trim();
|
|
1370
|
+
return splitCommentLevelTags(stripped).retained.trim() || undefined;
|
|
1373
1371
|
}
|
|
1374
1372
|
function stripTypeParamSeparator(text) {
|
|
1375
1373
|
if (!text)
|
|
@@ -1391,6 +1389,7 @@ function extractSeeTagText(tag) {
|
|
|
1391
1389
|
if (seeMatch) {
|
|
1392
1390
|
let text = seeMatch[1].trim();
|
|
1393
1391
|
text = text.replace(/\s*\*\s*$/gm, "").trim();
|
|
1392
|
+
text = text.replace(/^[ \t]*\*[ \t]?/gm, "").trim();
|
|
1394
1393
|
if (text)
|
|
1395
1394
|
return text;
|
|
1396
1395
|
}
|