Show
Ignore:
Timestamp:
10/17/05 11:26:46 (3 years ago)
Author:
alex
Message:

fixing match

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/patches/getNumericStyle.diff

    r1786 r1806  
    1212-       var n = Number(match[1]); 
    1313-       return (n == 0 || match[2]=='px' ? n : NaN); 
    14 +       var match = s.match(/([\d\.]+)(px){0,1)/i); 
     14+       var match = s.match(/([\d\.]+)(px){0,1}/i); 
    1515+       return match ? Number(match[1]) : NaN; 
    1616 }