relax phone number and postalcode restrictions a bit

This commit is contained in:
james 2012-02-10 16:59:31 +00:00
parent 3fae0cb954
commit 54084bd69a

View File

@ -52,20 +52,20 @@
'cpr' => array ('name' => 'CPR Training', 'cpr' => array ('name' => 'CPR Training',
'type' => 'yesno'), 'type' => 'yesno'),
'phonehome' => array('name' => 'Phone (Home)', 'phonehome' => array('name' => 'Phone (Home)',
'regexp' => '/^[1-9][0-9]{2}-[1-9][0-9]{2}-[0-9]{4}( x[0-9]{1,5})?$/', 'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}( x[0-9]{1,5})?$/',
'format' => '\'NNN-NNN-NNNN\' or \'NNN-NNN-NNNN xEXT\'',), 'format' => '\'NNN-NNN-NNNN\' or \'NNNNNNNNNN\' or \'NNN-NNN-NNNN xEXT\''),
'phonecell' => array('name' => 'Phone (Cell)', 'phonecell' => array('name' => 'Phone (Cell)',
'regexp' => '/^[1-9][0-9]{2}-[1-9][0-9]{2}-[0-9]{4}$/', 'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}$/',
'format' => '\'NNN-NNN-NNNN\'',), 'format' => '\'NNN-NNN-NNNN\' or \'NNNNNNNNNN\''),
'phonework' => array('name' => 'Phone (Work)', 'phonework' => array('name' => 'Phone (Work)',
'regexp' => '/^[1-9][0-9]{2}-[1-9][0-9]{2}-[0-9]{4}( x[0-9]{1,5})?$/', 'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}( x[0-9]{1,5})?$/',
'format' => '\'NNN-NNN-NNNN\' or \'NNN-NNN-NNNN xEXT\'',), 'format' => '\'NNN-NNN-NNNN\' or \'NNNNNNNNNN\' or \'NNN-NNN-NNNN xEXT\''),
'fax' => array('name' => 'Fax', 'fax' => array('name' => 'Fax',
'regexp' => '/^[1-9][0-9]{2}-[1-9][0-9]{2}-[0-9]{4}$/', 'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}$/',
'format' => '\'NNN-NNN-NNNN\'',), 'format' => '\'NNN-NNN-NNNN\' OR \'NNNNNNNNNN\''),
'postalcode' => array('name' => $config['postalzip'], 'postalcode' => array('name' => $config['postalzip'],
'regexp' => '/^(([A-Za-z][0-9][A-Za-z]( )?[0-9][A-Za-z][0-9])|([0-9]{5}))$/', 'regexp' => '/^(([A-Z][0-9][A-Z]( )?[0-9][A-Z][0-9])|([0-9]{5}))$/i',
'format' => '\'ANA NAN\' or \'ANANAN\' or \'NNNNN\'',), 'format' => '\'ANA NAN\' or \'ANANAN\' or \'NNNNN\''),
); );