Skip to content

Commit ced56b6

Browse files
committed
minor: do not allow uppercase letters in slugs
1 parent bb933ee commit ced56b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/features/projectsV2/fields/SlugFormField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function SlugFormField<T extends FieldValues>({
5252
required: true,
5353
maxLength: 99,
5454
pattern:
55-
/^(?!.*\.git$|.*\.atom$|.*[-._][-._].*)[a-zA-Z0-9][a-zA-Z0-9\-_.]*$/,
55+
/^(?!.*\.git$|.*\.atom$|.*[-._][-._].*)[a-z0-9][a-z0-9\-_.]*$/,
5656
}}
5757
/>
5858
<div className="invalid-feedback">

0 commit comments

Comments
 (0)