Skip to content

Commit 19c6343

Browse files
committed
fix: split eol
1 parent 04df378 commit 19c6343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeGenerator/factory/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const escapeIdentiferText = (text: string): string => {
1414
};
1515

1616
export const generateComment = (comment: string, deprecated?: boolean): Comment => {
17-
const splitComments = deprecated ? ["@deprecated"].concat(comment.split(EOL)) : comment.split(EOL);
17+
const splitComments = deprecated ? ["@deprecated"].concat(comment.split(/\r?\n/)) : comment.split(/\r?\n/);
1818
const comments = splitComments.filter((comment, index) => {
1919
if (index === splitComments.length - 1 && comment === "") {
2020
return false;

0 commit comments

Comments
 (0)