Skip to content

Commit f3927c3

Browse files
authored
Remove carriage return in joinLines (#446)
1 parent d5e8184 commit f3927c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function trim(text: string) {
88

99
export function joinLines(text?: string) {
1010
if (typeof text === 'string') {
11-
return text.replace(/\n+/g, ' ');
11+
return text.replace(/[\r\n]+/g, ' ');
1212
}
1313
}
1414

0 commit comments

Comments
 (0)