mirror of
https://github.com/javl/image2cpp.git
synced 2026-10-27 06:20:26 +00:00
fix removing all end of line commas, instead of just the last one
This commit is contained in:
1 parent
d316261abf
commit
313217f8bc
1 file changed
+1
-1
+1
-1
@@ -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,"");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user