Skip to content

Commit 458bd2f

Browse files
committed
fix: minimum length requirement removed
1 parent 00e3995 commit 458bd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/project/ProjectList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export default class ProjectList extends Component<ProjectListProps, ProjectList
9090
if (value.includes(' ')) {
9191
isValid[key] = false
9292
errorMessage[key] = `Do not use 'spaces' in name`
93-
} else if (value.length < 2 || value.length > 16) {
93+
} else if (value.length > 16) {
9494
isValid[key] = false
95-
errorMessage[key] = 'Minimum 2 and Maximum 16 characters required'
95+
errorMessage[key] = 'Maximum 16 characters required'
9696
} else if (!/^[a-z0-9]+([-a-z0-9]*[a-z0-9])?$/i.test(value)) {
9797
isValid[key] = false
9898
errorMessage[key] = `Use only lowercase alphanumeric characters, '-' (Cannot start/end with '-')`

0 commit comments

Comments
 (0)