mirror of
https://github.com/javl/image2cpp.git
synced 2026-09-11 17:13:20 +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;
|
output_string += code;
|
||||||
});
|
});
|
||||||
// Trim whitespace from end and remove trailing comma
|
// 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