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

Use the same method for validating e-mailaddresses in IVK_SaveEmailTemplate #43

Open
edwinvanelk opened this issue Nov 9, 2021 · 0 comments

Comments

@edwinvanelk
Copy link

edwinvanelk commented Nov 9, 2021

IVK_SaveEmailTemplate:

Use the same construction to validate e-mail addresses:

Valid split for From is coded as:
isMatch($EmailTemplate/From, '^[^\s\@,]+?@([a-zA-Z0-9-]+\.)+?[a-zA-Z]{2,}$')

Valid split for Reply-To is coded using (same) regex from enumeration:
isMatch($EmailTemplate/ReplyTo, getCaption(EmailTemplate.PrivateConstants.regex))

Can both validations use the enumeration value?

Change validation message to make it translatable:

To be able to maintain translation data correct; Can the Validation Feedback for the From member being changed from:

Template: {1}
Parameters: '$EmailTemplate/From' + ' isn''t a valid email address'

to something like:

Template: '{1}' is geen geldig emailadres
Parameters: $EmailTemplate/From

IVK_SaveEmailTemplate.zip

@edwinvanelk edwinvanelk changed the title Use one way for validating e-mailaddresses in IVK_SaveEmailTemplate Use the same method for validating e-mailaddresses in IVK_SaveEmailTemplate Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant