Skip to content

Commit

Permalink
Fix: #90
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamehw committed Jun 26, 2021
1 parent c2b4d57 commit 04f3fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export function truncateString(str: string): string {
* Replace linebreaks with the one whitespace symbol.
*/
export function replaceLinebreaks(str: string): string {
return str.replace(/\n/g, ' ');
return str.replace(/[\n\r\t]+?/g, ' ');
}

0 comments on commit 04f3fd1

Please sign in to comment.