We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30194 commit 98623f7Copy full SHA for 98623f7
src/client/src/pages/UserManagement/Validations.js
@@ -13,7 +13,7 @@ export const buildNameValidation = () => {
13
.trim()
14
.min(2, "Name must be at least 2 characters")
15
.max(50, "Name cannot be more than 50 characters")
16
- .matches(/^(?!.* )[a-zA-Z ]+$/, "Name must only contain letters and non-consecutive internal spaces")
+ .matches(/^(?!.*\s{2,})[a-zA-Z ]+$/, "Name must only contain letters and non-consecutive internal spaces")
17
.required("Name is required")
18
}
19
0 commit comments