File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- var Globalize = require ( ' globalize' ) ;
1+ var Globalize = require ( " globalize" ) ;
22var mixins = { } ;
33
44Object . getOwnPropertyNames ( Globalize ) . forEach ( function ( fn ) {
55 if ( fn . indexOf ( "format" ) === 0 ) {
66 var fnString = Globalize [ fn ] . toString ( ) ;
7- var argString = fnString . substr ( fnString . indexOf ( '(' ) + 1 , fnString . indexOf ( ')' ) - ( fnString . indexOf ( '(' ) + 1 ) ) . trim ( ) ;
8- var argArray = argString . split ( ', ' ) ;
7+ var argString = fnString . substr ( fnString . indexOf ( "(" ) + 1 , fnString . indexOf ( ")" ) - ( fnString . indexOf ( "(" ) + 1 ) ) . trim ( ) ;
8+ var argArray = argString . split ( ", " ) ;
99
1010 ( function ( currentFn , currentArgs ) {
1111 var formatter = function ( nextProps ) {
1212 var componentProps = nextProps || this . props ;
1313 var propArgs = currentArgs . map ( function ( element ) {
14- return componentProps [ element . replace ( / ( \s \/ \* | \* \/ ) / , '' ) . trim ( ) ] ;
14+ return componentProps [ element . replace ( / ( \s \/ \* | \* \/ ) / , "" ) . trim ( ) ] ;
1515 } ) ;
1616
1717 Globalize . locale ( componentProps [ "locale" ] ) ;
You can’t perform that action at this time.
0 commit comments