Skip to content

Commit

Permalink
fix: ensure no closing comments in JSDoc (orval-labs#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverDudgeon authored Oct 7, 2021
1 parent e0631d3 commit eb6cbd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export function jsDoc(
},
tryOneLine = false,
): string {
const lines = Array.isArray(description) ? description : [description];
// Ensure there aren't any comment terminations in doc
const lines = (Array.isArray(description) ? description : [description])
.map(line => line.replace('*/', '*\\/'));

const count = [description, deprecated, summary].reduce(
(acc, it) => (it ? acc + 1 : acc),
Expand Down

0 comments on commit eb6cbd3

Please sign in to comment.