Skip to content

Commit

Permalink
Removing telegram rules comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Apr 3, 2024
1 parent 1e5488e commit 604ecbd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions client/src/utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ export const addressRules = [
// (v: string) =>
// (v && v.length >= 3 && v.length <= 50) || 'Social Number must be between 3 and 50 characters.'
// ]
// export const telegramRules = [
// (v: string) => typeof v === 'string' || 'Telegram must be a string.',
// (v: string) => !!v || 'Telegram is required.',
// (v: string) => /^@([A-Za-z0-9_]{1,255})$/.test(v) || 'Telegram handle is not valid.',
// (v: string) =>
// (v && v.length >= 3 && v.length <= 50) || 'Telegram must be between 3 and 50 characters.'
// ]

export const requiredStringRules = [
(v: string) => typeof v === 'string' || 'This field must be a string.',
(v: string) => !!v || 'This field is required.'
Expand Down

0 comments on commit 604ecbd

Please sign in to comment.