Add share_id validation.

This commit is contained in:
Brian Cao 2023-05-25 16:46:37 -07:00
parent 050cd2f5d9
commit 06e6cbec9a
2 changed files with 7 additions and 0 deletions

View file

@ -147,6 +147,8 @@ export const EVENT_COLORS = [
export const DOMAIN_REGEX =
/^(localhost(:[1-9]\d{0,4})?|((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63})$/;
export const SHARE_ID_REGEX = /^[a-zA-Z0-9]{16}$/;
export const DESKTOP_SCREEN_WIDTH = 1920;
export const LAPTOP_SCREEN_WIDTH = 1024;
export const MOBILE_SCREEN_WIDTH = 479;