Web: hone custom domain validation regex
Goal
The tenant admin settings > domain tab > edit custom domain modal needs more thorough validation rules. Right now we're only checking that there isn't a space in the string. It should be able to reject invalid domains and allow everything valid.
Fairly low priority because invalid domains will fail anyway
What needs to be done
- Determine the exact rules for valid domains
- Apply those rules to a regex pattern in the
NetworkAdminConsoleEditDomainModalComponent
QA
UX/Design
Mobile
-
Is Mobile Required?
Personas
Experiments
Acceptance Criteria
-
Regex for edit custom domain modal validates domains
Developer Notes
Use the following regular expression to validate the provided domain both in the FE and BE
/^(?=.{1,263}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$/gi
Definition of Ready Checklist
-
Definition Of Done (DoD) -
Acceptance criteria -
Weighted -
QA -
UX/Design -
Personas -
Experiments
Edited by Fausto Arcidiacono