ical-generator 6.0.1-develop.8 → 6.0.1

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.
package/package.json CHANGED
@@ -125,5 +125,5 @@
125
125
  "test": "mocha"
126
126
  },
127
127
  "type": "module",
128
- "version": "6.0.1-develop.8"
128
+ "version": "6.0.1"
129
129
  }
package/src/calendar.ts CHANGED
@@ -169,21 +169,13 @@ export default class ICalCalendar {
169
169
  return this.data.prodId;
170
170
  }
171
171
 
172
- const prodIdRegEx = /^\/\/(.+)\/\/(.+)\/\/([A-Z]{1,4})$/;
173
-
174
- if (typeof prodId === 'string' && prodIdRegEx.test(prodId)) {
172
+ if (typeof prodId === 'string') {
175
173
  this.data.prodId = prodId;
176
174
  return this;
177
175
  }
178
- if (typeof prodId === 'string') {
179
- throw new Error(
180
- '`prodId` isn\'t formated correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/'+
181
- 'classes/ICalCalendar.html#prodId'
182
- );
183
- }
184
176
 
185
177
  if (typeof prodId !== 'object') {
186
- throw new Error('`prodid` needs to be a valid formed string or an object!');
178
+ throw new Error('`prodid` needs to be a string or an object!');
187
179
  }
188
180
 
189
181
  if (!prodId.company) {