We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04df378 commit 19c6343Copy full SHA for 19c6343
src/CodeGenerator/factory/utils.ts
@@ -14,7 +14,7 @@ export const escapeIdentiferText = (text: string): string => {
14
};
15
16
export const generateComment = (comment: string, deprecated?: boolean): Comment => {
17
- const splitComments = deprecated ? ["@deprecated"].concat(comment.split(EOL)) : comment.split(EOL);
+ const splitComments = deprecated ? ["@deprecated"].concat(comment.split(/\r?\n/)) : comment.split(/\r?\n/);
18
const comments = splitComments.filter((comment, index) => {
19
if (index === splitComments.length - 1 && comment === "") {
20
return false;
0 commit comments