Skip to content

Commit c659144

Browse files
committed
Fix linting error
1 parent 2888fa8 commit c659144

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/utils/validators.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
/* eslint-disable */
2+
13
export const nameValidator = (value: string) => {
24
if (value.length === 0) {
3-
return "Name must be not empty"
5+
return "Name must not be empty"
46
}
57

68
if (value.length > 50) {
79
return "Name must be at most 50 characters long";
810
}
911

1012
if (!/^[a-zA-Z\s-]*$/.test(value)) {
11-
return "Name must contain only alphabetical, hypen and white space characters";
13+
return "Name must contain only alphabetical, hyphen and white space characters";
1214
}
1315

1416
return "";

0 commit comments

Comments
 (0)