-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Assets - Service, performance, functionality
-
1
-
Minor
Issue Summary
Below regex to validate uncaptured group in email is not working
^[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}(?:,[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})*$
Steps to Reproduce
- Login to instance.
- Add below Regex validation to any text or email attribute and save
^[A-Za-z0-9._%+\-]{+}@[A-Za-z0-9.\-]{+}\.[A-Za-z] {2,}(?:,[A-Za-z0-9._%+\-]{+}@[A-Za-z0-9.\-]{+}\.[A-Za-z]{2,} )*$
- This behaviour is seen in site with new asset architecture, with old architecture this is working as expected.
Expected Results
Regex is valid and is saved
Actual Results
Error : We couldn’t update your attribute
The format of the regular expression is invalid.
Workaround
Currently , removing the uncaptured group and using below regex works -
[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}
but this does not support uncaptured group .
A workaround for captured group will be added here when available
- has action
-
ANA-6256 Loading...