0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-01-15 01:14:27 -05:00

fix: share can't be created if an invalid email is entered in mail recipients

This commit is contained in:
Elias Schneider 2024-10-15 20:47:04 +02:00
parent 77a092a3cf
commit d5cd3002a1
No known key found for this signature in database
GPG key ID: 07E623B294202B6C

View file

@ -371,7 +371,7 @@ const CreateUploadModalBody = ({
searchable searchable
creatable creatable
id="recipient-emails" id="recipient-emails"
type="email" inputMode="email"
getCreateLabel={(query) => `+ ${query}`} getCreateLabel={(query) => `+ ${query}`}
onCreate={(query) => { onCreate={(query) => {
if (!query.match(/^\S+@\S+\.\S+$/)) { if (!query.match(/^\S+@\S+\.\S+$/)) {