Skip to content

Commit 2764501

Browse files
authored
Merge pull request #1 from Shadowman777/hotfix-1
hotfix-1 - fixed CRLF regex
2 parents a8f412f + bd758dc commit 2764501

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ coverage
22
dist
33
node_modules
44
.vscode
5+
.idea

src/serial/normalize-newlines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const normalizeNewlines = (s: string): string => s.replace(/(?<!\r)\n|\r(?!\n)/g, '\r\n');
1+
const normalizeNewlines = (s: string): string => s.replace(/\r\n|\r(?!\n)|\n/g, '\r\n');
22

33
export default normalizeNewlines;

0 commit comments

Comments
 (0)