Merge pull request #166 from deweyx/fix-join-scripts

do proper global replace
This commit is contained in:
Ivan Mathy 2020-09-15 19:56:23 -05:00 committed by GitHub
commit 00f880429b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -10,5 +10,5 @@
**/
function main(input) {
input.text = input.text.replace('\n', '');
input.text = input.text.replace(/\n/g, '');
}

View File

@ -11,5 +11,5 @@
**/
function main(input) {
input.text = input.text.replace('\n', ',');
input.text = input.text.replace(/\n/g, ',');
}

View File

@ -11,5 +11,5 @@
**/
function main(input) {
input.text = input.text.replace('\n', ' ');
input.text = input.text.replace(/\n/g, ' ');
}