Skip to content

Commit

Permalink
replace new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 authored Jan 18, 2024
1 parent 2c4375b commit d467b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/helpers/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export function replaceUrl(url, args) {
* @returns string
*/
export function replaceNewLine(text) {
return text.replace(/\\r\\n/g, '<br>');
}
return text.replace(/(?:\r\n|\r|\n)/g, '<br>');
}

0 comments on commit d467b3f

Please sign in to comment.