diff --git a/Scripts/JoinLines.js b/Scripts/JoinLines.js index da1cf5b5..a35beb9d 100644 --- a/Scripts/JoinLines.js +++ b/Scripts/JoinLines.js @@ -10,5 +10,5 @@ **/ function main(input) { - input.text = input.text.replace('\n', ''); + input.text = input.text.replace(/\n/g, ''); } diff --git a/Scripts/JoinLinesWithComma.js b/Scripts/JoinLinesWithComma.js index 8d6bd66a..72728b0b 100644 --- a/Scripts/JoinLinesWithComma.js +++ b/Scripts/JoinLinesWithComma.js @@ -11,5 +11,5 @@ **/ function main(input) { - input.text = input.text.replace('\n', ','); + input.text = input.text.replace(/\n/g, ','); } diff --git a/Scripts/JoinLinesWithSpace.js b/Scripts/JoinLinesWithSpace.js index e884d1b0..97d21dcf 100644 --- a/Scripts/JoinLinesWithSpace.js +++ b/Scripts/JoinLinesWithSpace.js @@ -11,5 +11,5 @@ **/ function main(input) { - input.text = input.text.replace('\n', ' '); + input.text = input.text.replace(/\n/g, ' '); }