fix removing all end of line commas, instead of just the last one

This commit is contained in:
javl
2019-10-07 16:23:34 +02:00
parent d316261abf
commit 313217f8bc
+1 -1
View File
@@ -967,7 +967,7 @@
output_string += code;
});
// Trim whitespace from end and remove trailing comma
output_string = output_string.replace(/,\s*$/gm,"");
output_string = output_string.replace(/,\s*$/g,"");
}
}