File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ function main() {
585585
586586 fs . writeFileSync ( 'translate.resource' , '// Total.js translation file\n// Created: ' + new Date ( ) . format ( 'yyyy-MM-dd HH:mm' ) + '\n' + builder . join ( '\n' ) ) ;
587587 console . log ( 'Total.js: the translation was created (' + count + ' texts)' ) ;
588- } , ( path , dir ) => dir ? path . indexOf ( '/node_modules/ ' ) === - 1 && path . indexOf ( '/tmp/ ' ) === - 1 : true ) ;
588+ } , ( path , dir ) => dir ? path . endsWith ( '/node_modules' ) && path . endsWith ( '/tmp' ) && path . endsWith ( '/.git' ) : true ) ;
589589 return ;
590590 }
591591
@@ -631,7 +631,7 @@ function main() {
631631
632632 fs . writeFileSync ( 'translate.csv' , output . join ( '\n' ) ) ;
633633 console . log ( 'Total.js: the translation was created (' + count + ' texts)' ) ;
634- } , ( path , dir ) => dir ? path . indexOf ( '/node_modules/ ' ) === - 1 && path . indexOf ( '/tmp/ ' ) === - 1 : true ) ;
634+ } , ( path , dir ) => dir ? path . endsWith ( '/node_modules' ) && path . endsWith ( '/tmp' ) && path . endsWith ( '/.git' ) : true ) ;
635635 return ;
636636 }
637637
@@ -671,4 +671,4 @@ function main() {
671671 } ) ;
672672}
673673
674- main ( ) ;
674+ main ( ) ;
You can’t perform that action at this time.
0 commit comments