turf-common 1.2.1-beta.65 → 1.2.1-beta.66
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.
|
@@ -181,6 +181,8 @@ var TurfAvailability = /** @class */ (function () {
|
|
|
181
181
|
TurfAvailability.prototype.parse = function () {
|
|
182
182
|
var eventCode = this.getCode();
|
|
183
183
|
var eventCodes = eventCode.split("#");
|
|
184
|
+
if (!eventCodes.length)
|
|
185
|
+
return;
|
|
184
186
|
var dateCodeRange = eventCodes[1];
|
|
185
187
|
var timeCodeRange = eventCodes[2];
|
|
186
188
|
this.pitchCodes = eventCodes[3].split(",").map(function (id) { return id.padStart(2, "0"); });
|