Skip to content

Commit

Permalink
Merge pull request #56 from Ferlab-Ste-Justine/feat/cqdg-392
Browse files Browse the repository at this point in the history
feat: CQDG-392 up MAX_LENGTH_PER_ROLE value
  • Loading branch information
atoulous authored Sep 27, 2023
2 parents 740cb54 + 78e0985 commit b861bdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/db/models/User.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DataTypes, Model } from 'sequelize';
import validator from 'validator';

import { LINKEDIN_REGEX, MAX_LENGTH_PER_ROLE, NAME_REGEX, UUID_VERSION } from '../../utils/constants';
import sequelizeConnection from '../config';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const UUID_VERSION = 4;
export const NAME_REGEX = /^[a-zà-ÿ ,.'-_]+$/iu;
export const LINKEDIN_REGEX = /^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)\/([-a-zA-Z0-9]+)\/*/iu;
export const MAX_LENGTH_PER_ROLE = 35;
export const MAX_LENGTH_PER_ROLE = 100;

0 comments on commit b861bdf

Please sign in to comment.