Changeset 29939

Show
Ignore:
Timestamp:
02/12/09 13:13:39 (4 years ago)
Author:
tokuhirom
Message:

f*cking softbank changes some symbols. are you person of leisure?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WWW-MobileCarrierJP/trunk/lib/WWW/MobileCarrierJP/ThirdForce/HTTPHeader.pm

    r14508 r29939  
    1414 
    1515        process 'td:nth-child(2)', 'x-jphone-name',    'TEXT'; 
    16         process 'td:nth-child(3)', 'x-jphone-display', 'TEXT'; 
     16        process 'td:nth-child(3)', 'x-jphone-display', [ 'TEXT', \&_asterisk ]; 
    1717        process 'td:nth-child(4)', 'x-jphone-color',   'TEXT'; 
    18         process 'td:nth-child(5)', 'x-jphone-sound', [ 'TEXT', \&_undefine, ]; 
    19         process 'td:nth-child(6)', 'x-jphone-smaf',  [ 'TEXT', \&_undefine, ]; 
     18        process 'td:nth-child(5)', 'x-jphone-sound', [ 'TEXT', \&_undefine ]; 
     19        process 'td:nth-child(6)', 'x-jphone-smaf',  [ 'TEXT', \&_undefine ]; 
    2020 
    2121        # maybe, no person needs x-s-* information. 
     
    2626); 
    2727 
     28sub _asterisk { s/ x /*/ } 
     29 
    2830sub _undefine { 
    2931    my $x = shift; 
    30     $x =~ /^(?:−|-)$/ ? undef : $x; 
     32    $x =~ /^(?:−|-|\x{d7})$/ ? undef : $x; 
    3133} 
    3234