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
@@ -164,5 +164,5 @@
164
164
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
165
165
  "test-index": "pnpm run test-no-cov test/rules/index.js"
166
166
  },
167
- "version": "65.4.8"
167
+ "version": "65.4.9"
168
168
  }
@@ -286,11 +286,12 @@ export default {
286
286
  return `/**${body.replace(/^[ \t]+/v, '')}\n${indent}`;
287
287
  }
288
288
 
289
- return `/**\n${indent}*${body}\n${indent}`;
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}`;