sfc-utils 1.4.8 → 1.4.9

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.
@@ -146,8 +146,12 @@ const Topper2 = ({ settings, wcmData, mods }) => {
146
146
  /** Converts wcm string from spreadsheet into a list of WCM ids */
147
147
  const getWcmIdList = (listStr) => {
148
148
  if (!listStr) return [];
149
-
150
- return listStr.toString().split(";").map((d) => parseInt(d));
149
+ // For backwards compat, handle both ; and , as delimiters
150
+ let charSearch = ","
151
+ if (listStr.indexOf(";") !== -1){
152
+ charSearch = ";"
153
+ }
154
+ return listStr.toString().split(charSearch).map((d) => parseInt(d));
151
155
  }
152
156
 
153
157
  /** Checks if WCM list represents an image slideshow */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",