Skip to content

Commit

Permalink
refactor: fix JSDoc workaround in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasf committed Aug 11, 2023
1 parent b19f405 commit da093e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/__docs__/buildScripts/utils/getJSDoc.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function getJSDoc(source: Buffer, error: (err: Error) => void) {
sections[0] ||
{}
if (process.platform === 'win32' && module.description) {
// JSDOC bug https://github.com/jsdoc/jsdoc/issues/2067
module.description = module.description.replace("\r", "\r\n")
// JSDoc bug https://github.com/jsdoc/jsdoc/issues/2067
module.description = module.description.replace(/\r/g, "\r\n")
}
doc = {
...module,
Expand Down

0 comments on commit da093e4

Please sign in to comment.