eslint-plugin-jsdoc 65.4.8 → 65.4.9
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/package.json
CHANGED
|
@@ -286,11 +286,12 @@ export default {
|
|
|
286
286
|
return `/**${body.replace(/^[ \t]+/v, '')}\n${indent}`;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
// Separate a leading slash from the JSDoc star to avoid creating `*/`.
|
|
290
|
+
return `/**\n${indent}*${body.replace(/^\//v, ' /')}\n${indent}`;
|
|
290
291
|
}
|
|
291
292
|
|
|
292
293
|
const inner = comments.map((comment) => {
|
|
293
|
-
return `${indent}*${comment.value.trimEnd()}`;
|
|
294
|
+
return `${indent}*${comment.value.trimEnd().replace(/^\//v, ' /')}`;
|
|
294
295
|
}).join('\n');
|
|
295
296
|
|
|
296
297
|
return `/**\n${inner}\n${indent}`;
|