mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
fix removing all end of line commas, instead of just the last one
This commit is contained in:
+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