- Timestamp:
- 10/17/14 16:26:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/CustIDCK.pm
r546 r639 34 34 my $custid = shift; 35 35 36 # Arguably this is wrong, but spaces don't really show up well on printed material... 37 $custid =~ s/^\s+//; 38 $custid =~ s/\s+$//; 39 36 40 # hardcoded "OK" custids. 37 41 return 1 if $custid =~ /^STAFF(?:-\d\d?)?$/; 38 42 return 1 if $custid =~ /^5554242(?:-\d\d?)?$/; # just in case some later change might block this 43 return 1 if $custid =~ /^\d{6}(?:-\d\d?)?$/; 39 44 return 1 if $custid =~ /^\d{7}(?:-\d\d?)?$/; 40 45 return 1 if $custid =~ /^\d{10}(?:-\d\d?)?$/;
Note:
See TracChangeset
for help on using the changeset viewer.