Changeset 2142 for trunk/LATMOS-Accounts


Ignore:
Timestamp:
06/13/18 18:44:13 (6 years ago)
Author:
nanardon
Message:

Fix: test on alias/othername

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Nethost.pm

    r2133 r2142  
    111111                label => l('Aliases'), 
    112112                checkinputformat => sub { 
    113                     return $_[0] =~ /[\s^[:ascii:]]/ ? 0 : 1; 
     113                    return $_[0] =~ /^[[:ascii:]]+$/ ? 1 : 0; 
    114114                }, 
    115115            }, 
     
    205205                label => l('Other name'), 
    206206                checkinputformat => sub { 
    207                     return $_[0] =~ /[\s^[:ascii:]]/ ? 0 : 1; 
     207                    return $_[0] =~ /^[[:ascii:]]+$/ ? 1 : 0; 
    208208                }, 
    209209            }, 
Note: See TracChangeset for help on using the changeset viewer.