File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ var pathToStrictD3Module = path.join(pathToRoot, 'test/strict-d3.js');
1010var pathToDist = path . join ( pathToRoot , 'dist/' ) ;
1111var pathToBuild = path . join ( pathToRoot , 'build/' ) ;
1212
13+ function startsWithLowerCase ( v ) {
14+ return v . charAt ( 0 ) !== v . charAt ( 0 ) . toUpperCase ( ) ;
15+ }
16+
1317var pathToPlotlyIndex = path . join ( pathToLib , 'index.js' ) ;
1418var mainIndex = fs . readFileSync ( pathToPlotlyIndex , 'utf-8' ) ;
1519var allTraces = fs . readdirSync ( path . join ( pathToSrc , 'traces' ) )
16- . filter ( function ( v ) {
17- return v . charAt ( 0 ) !== v . charAt ( 0 ) . toUpperCase ( ) ;
18- } ) ;
20+ . filter ( startsWithLowerCase ) ;
1921var allTransforms = fs . readdirSync ( path . join ( pathToSrc , 'transforms' ) )
2022 . filter ( function ( v ) {
21- return v . charAt ( 0 ) !== v . charAt ( 0 ) . toUpperCase ( ) && v !== 'helpers.js' ;
23+ return startsWithLowerCase ( v ) && v !== 'helpers.js' ;
2224 } )
2325 . map ( function ( e ) { return e . replace ( '.js' , '' ) ; } ) ;
2426
You can’t perform that action at this time.
0 commit comments