sfc-utils 1.4.20 → 1.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,9 +202,13 @@ const Topper2 = ({ settings, wcmData, mods }) => {
202
202
 
203
203
  /** Converts string from spreadsheet into a list and pads the list if the length is incorrect */
204
204
  const convertStringToList = (str, size) => {
205
+ // If the string is empty (ie caption/credit is not filled out), return early
206
+ if (!str.includes(";")) return [];
207
+
205
208
  var list = str.split(";");
206
209
  if (list.length === size) return list;
207
210
 
211
+ // Add filler text if the number of caption/credit entries does not match the number of images
208
212
  for (var i = (list.length - 1); i < (size - 1); i++) {
209
213
  list.push("");
210
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.20",
3
+ "version": "1.4.22",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",