Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode emails not passing validation check #251

Open
sharpstorm opened this issue Sep 12, 2023 · 0 comments
Open

Unicode emails not passing validation check #251

sharpstorm opened this issue Sep 12, 2023 · 0 comments

Comments

@sharpstorm
Copy link

Bug Description

Bumping yup to 1.2.0 in #243 causes the creation of events with unicode emails to fail unexpectedly. This is due to a regex change in yup which no longer accepts unicode characters in email addresses.

Code to Reproduce

This is a slight modification of the example code to include an attendee with a unicode email.

ics.createEvent({
  start: [2018, 5, 30, 6, 30],
  duration: { hours: 6, minutes: 30 },
  title: 'Bolder Boulder',
  description: 'Annual 10-kilometer run in Boulder, Colorado',
  location: 'Folsom Field, University of Colorado (finish line)',
  url: 'http://www.bolderboulder.com/',
  geo: { lat: 40.0095, lon: 105.2669 },
  categories: ['10k races', 'Memorial Day Weekend', 'Boulder CO'],
  status: 'CONFIRMED',
  busyStatus: 'BUSY',
  organizer: { name: 'Admin', email: '[email protected]' },
  attendees: [
    { name: 'Adam Gibbons', email: [email protected]', rsvp: true, partstat: 'ACCEPTED', role: 'REQ-PARTICIPANT' },
  ]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants