Overview
Comment: | Normalisation numéro de téléphone : suppression du (0) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3044b2f9679cfc47438417517f20b86e |
User & Date: | bohwaz on 2014-04-14 00:03:23 |
Other Links: | manifest | tags |
Context
2014-04-14
| ||
00:38 | rc3 + affichage des numéros de téléphone check-in: 1fecbd538d user: bohwaz tags: trunk | |
00:03 | Normalisation numéro de téléphone : suppression du (0) check-in: 3044b2f967 user: bohwaz tags: trunk | |
2014-04-12
| ||
05:46 | Un peu d'animation pour les longues tâches check-in: 587b766d75 user: bohwaz tags: trunk | |
Changes
Modified src/include/lib.utils.php from [6a6471aec6] to [2a175d6abb].
︙ | ︙ | |||
513 514 515 516 517 518 519 520 521 522 523 524 525 526 | 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\+]!', '', $n); return $n; } static public function write_ini_string($in) { $out = ''; | > | 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 = ''; |
︙ | ︙ |