jstanden / cerb

Cerb is a fully customizable, web-based platform for enterprise communication and process automation. Create high volume shared inboxes. Integrate with any API-based service and automate nearly any repetitive digital workflow using the specialized KATA language and browser-based coding tools. Production: https://github.com/cerb/cerb-release/
https://cerb.ai/
Other
80 stars 38 forks source link

add comma at the end of input if none is provided #1742

Open nicholsk18 opened 9 months ago

nicholsk18 commented 9 months ago

This is more or less a quick fix, but no validation if staff types in two emails without a comma in any of the 3 fields shown here. You can hit send and it will never send to anyone as far as I am aware. To headers are missing and no error anywhere. This adds a comma on space key if it is needed.

jstanden commented 9 months ago

@nicholsk18 Thanks! I can reproduce the issue with space-delimited email addresses in To/Cc/Bcc. I'll review the patch.

In validation, we can probably check the length of the the recipients in each field. If our parsed value is empty we'd also know something went wrong.

nicholsk18 commented 9 months ago

Backend would be great to add, but I think for UX it be nice to have something in front end as well