microsoft / Msdyn365.Commerce.Online

Dynamics 365 Commerce online project
Other
49 stars 41 forks source link

EmailRegex utility not matches against top level domain with only numbers and subdomain #67

Closed danielkoch closed 7 months ago

danielkoch commented 9 months ago

The regex utility for validating email addresses (location in published npm package: node_modules/@msdyn365-commerce-modules/retail-actions/src/utilities/regex/email-regex.ts) not working with top level domains that have subdomains and only contain numbers.

Example email address: testemail@testemail.123.it

The regex must be extended by 0-9, full regex: /^[a-zA-Z0-9.!#$%&'*+=?^_{|}~-]+@a-zA-Z0-9?(?:.a-zA-Z0-9?)+$/`

anastasiiaandreichuk commented 9 months ago

@danielkoch thank you for reporting the issue. I have logged a bug internally to track and fix it.

anastasiiaandreichuk commented 7 months ago

The bug fix will be available in 9.50 SSK version and later.