• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inclusion-numerique / coop-mediation-numerique / 63ed3aef-04ec-416c-af7d-d56de15ebe3e

17 Mar 2026 03:48PM UTC coverage: 10.613% (-0.2%) from 10.79%
63ed3aef-04ec-416c-af7d-d56de15ebe3e

Pull #437

circleci

web-flow
Merge pull request #458 from inclusion-numerique/fix/admin-stats-min-date

fix(admin): allow filtering statistics from January 2020
Pull Request #437: release

685 of 10426 branches covered (6.57%)

Branch coverage included in aggregate %.

34 of 590 new or added lines in 86 files covered. (5.76%)

23 existing lines in 20 files now uncovered.

2130 of 16099 relevant lines covered (13.23%)

2.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/web/src/utils/telephoneValidation.ts
1
import z from 'zod'
2

3
// Indicatifs français : métropole (33) + outre-mer (262, 590, 594, 596)
4
// Format national : 10 chiffres commençant par 0
5
// Format international : indicatif + 9 chiffres
6
export const telephoneRegex =
NEW
7
  /^(?:(?:\(\+(?:33|262|590|594|596)\)|\+(?:33|262|590|594|596)|00(?:33|262|590|594|596))[\s()./-]*(?:\d[\s()./-]*){8}\d|0\d(?:[\s./-]?\d){8})$/
×
8

NEW
9
export const telephoneValidation = z
×
10
  .string()
NEW
11
  .transform((value) => (value.trim() === '' ? null : value))
×
NEW
12
  .refine((data) => data === null || telephoneRegex.test(data), {
×
13
    message:
14
      'Veuillez renseigner un numéro français (e.g. 04 55 66 77 88 ou +33 4 55 66 77 88)',
15
  })
16
  .nullish()
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc