Skip to content

Commit

Permalink
fix: add username constants (#479)
Browse files Browse the repository at this point in the history
* fix: add username constants

* fix: update min username length to 3

* fix: update constants
  • Loading branch information
spaenleh authored Apr 15, 2024
1 parent eb252b5 commit 69cc49b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/constants/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,12 @@ export const MAX_THUMBNAIL_SIZE = 10 * 1024 * 1024;
* Maximum item name length
*/
export const MAX_ITEM_NAME_LENGTH = 500 as const;

/**
* Maximum username length
*/
export const MAX_USERNAME_LENGTH = 60 as const;
/**
* Minimum username length
*/
export const MIN_USERNAME_LENGTH = 2 as const;

0 comments on commit 69cc49b

Please sign in to comment.