26 lines
942 B
PHP
26 lines
942 B
PHP
<?php
|
|
|
|
/**
|
|
* @see https://github.com/laminas/laminas-i18n for the canonical source repository
|
|
* @copyright https://github.com/laminas/laminas-i18n/blob/master/COPYRIGHT.md
|
|
* @license https://github.com/laminas/laminas-i18n/blob/master/LICENSE.md New BSD License
|
|
*/
|
|
|
|
return [
|
|
'code' => '591',
|
|
'patterns' => [
|
|
'national' => [
|
|
'general' => '/^[23467]\\d{7}$/',
|
|
'fixed' => '/^(?:2(?:2\\d{2}|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d{2}|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:2\\d|3[234]|4[248]|5[24]|6[2-6]|7\\d))|4(?:4\\d{2}|6(?:11|[24689]\\d|72)))\\d{4}$/',
|
|
'mobile' => '/^[67]\\d{7}$/',
|
|
'emergency' => '/^11[089]$/',
|
|
],
|
|
'possible' => [
|
|
'general' => '/^\\d{7,8}$/',
|
|
'fixed' => '/^\\d{7,8}$/',
|
|
'mobile' => '/^\\d{8}$/',
|
|
'emergency' => '/^\\d{3}$/',
|
|
],
|
|
],
|
|
];
|