Skip to content

Commit

Permalink
fix: changement de la regex de tel 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomarom committed Feb 6, 2025
1 parent 452a123 commit 5bfb538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/constants/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const YEAR_PATTERN = "^[12][0-9]{3}$";
// Basé sur les recommandations SIFA
export const DERNIER_ORGANISME_UAI_PATTERN =
"^(0?[0-9][0-9]|0?2[AB]|0?9[012345]|97[1234678]|98[678]|99[0135]|[0-9]{7}[a-zA-Z])$";
export const PHONE_REGEX_PATTERN = "^(?:+(d{1,3})[-.s]?)?(?:(?(d{1,4}))?[-.s]?)?(d{2,4}[-.s]?d{2,4}[-.s]?d{2,4})$";
export const PHONE_REGEX_PATTERN = "^(?:\+(\d{1,3})[-.\s]?)?(?:\(?(\d{1,4})\)?[-.\s]?)?(\d{2,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4})$";

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \+

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \d

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \s

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \(

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \d

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \)

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \s

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \d

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \s

Check failure on line 13 in shared/constants/validations.ts

View workflow job for this annotation

GitHub Actions / tests / Tests

Unnecessary escape character: \d

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '+' is equivalent to just '+', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\d' is equivalent to just 'd', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\s' is equivalent to just 's', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '(' is equivalent to just '(', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\d' is equivalent to just 'd', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence ')' is equivalent to just ')', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\s' is equivalent to just 's', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\d' is equivalent to just 'd', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\s' is equivalent to just 's', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\d' is equivalent to just 'd', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\s' is equivalent to just 's', so the sequence is not a character class when it is used in a
regular expression
.

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High

The escape sequence '\d' is equivalent to just 'd', so the sequence is not a character class when it is used in a
regular expression
.

// Numero INE (Identifiant National Elève)
// Le numero INE composé de 11 caractères,
Expand Down

0 comments on commit 5bfb538

Please sign in to comment.