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" ) ;
2
2
var mixins = { } ;
3
3
4
4
Object . getOwnPropertyNames ( Globalize ) . forEach ( function ( fn ) {
5
5
if ( fn . indexOf ( "format" ) === 0 ) {
6
6
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 ( ", " ) ;
9
9
10
10
( function ( currentFn , currentArgs ) {
11
11
var formatter = function ( nextProps ) {
12
12
var componentProps = nextProps || this . props ;
13
13
var propArgs = currentArgs . map ( function ( element ) {
14
- return componentProps [ element . replace ( / ( \s \/ \* | \* \/ ) / , '' ) . trim ( ) ] ;
14
+ return componentProps [ element . replace ( / ( \s \/ \* | \* \/ ) / , "" ) . trim ( ) ] ;
15
15
} ) ;
16
16
17
17
Globalize . locale ( componentProps [ "locale" ] ) ;
You can’t perform that action at this time.
0 commit comments