Skip to content

Commit 21b0f6f

Browse files
committed
Release: Clarify filename suffix test
1 parent 07d4ac8 commit 21b0f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var commonTasks, stableTasks,
1616
};
1717

1818
fs.readdirSync( "./lib" ).forEach(function( filename ) {
19-
if ( filename.slice( -3 ) === ".js" ) {
19+
if ( filename.endsWith( ".js" ) ) {
2020
require( "./lib/" + filename )( Release );
2121
}
2222
});

0 commit comments

Comments
 (0)