Differences From Artifact [6a6471aec6]:
- File src/include/lib.utils.php — part of check-in [0c2ea2638c] at 2014-04-12 00:41:30 on branch trunk — Restreindre les dates acceptées dans les champs persos (user: bohwaz, size: 18389) [annotate] [blame] [check-ins using]
To Artifact [2a175d6abb]:
- File src/include/lib.utils.php — part of check-in [3044b2f967] at 2014-04-14 00:03:23 on branch trunk — Normalisation numéro de téléphone : suppression du (0) (user: bohwaz, size: 18445) [annotate] [blame] [check-ins using]
- File src/include/lib/Garradin/Utils.php — part of check-in [e1d5bc8368] at 2014-12-18 18:41:03 on branch trunk — Déplacement des objets pour adopter PSR-0 (user: bohwaz, size: 18445) [annotate] [blame] [check-ins using]
︙ | |||
513 514 515 516 517 518 519 520 521 522 523 524 525 526 | 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 | + | static public function checkBIC($bic) { return preg_match('!^[A-Z]{4}[A-Z]{2}[1-9A-Z]{2}(?:[A-Z\d]{3})?$!', $bic); } static public function normalizePhoneNumber($n) { $n = preg_replace('!(\+\d+)\(0\)!', '\\1', $n); $n = preg_replace('![^\d\+]!', '', $n); return $n; } static public function write_ini_string($in) { $out = ''; |
︙ |