Skip to content

Commit bf4f6cf

Browse files
committed
fix(buitin scripts): modify script for deal with _Carriage Return \r_
1 parent 8451970 commit bf4f6cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripts/JoinLines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
**/
1111

1212
function main(input) {
13-
input.text = input.text.replace(/\n/g, '');
13+
input.text = input.text.replace(/\r?\n/g, '');
1414
}

0 commit comments

Comments
 (0)