@forcecalendar/core 2.1.46 → 2.1.47
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/core/events/Event.js +5 -0
- package/package.json +1 -1
package/core/events/Event.js
CHANGED
|
@@ -605,6 +605,11 @@ export class Event {
|
|
|
605
605
|
throw new Error('Attendee must have an email');
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
+
// Validate email format (matches constructor validation)
|
|
609
|
+
if (!this._isValidEmail(attendee.email)) {
|
|
610
|
+
throw new Error(`Invalid email for attendee: ${attendee.email}`);
|
|
611
|
+
}
|
|
612
|
+
|
|
608
613
|
// Check if attendee already exists
|
|
609
614
|
if (this.hasAttendee(attendee.email)) {
|
|
610
615
|
return false;
|