Skip to content

Commit

Permalink
feat: omit files starting with _ from loading (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Jul 7, 2023
1 parent 029e887 commit b8a2688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/strategies/LoaderStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class LoaderStrategy<T extends Piece> implements ILoaderStrategy<T> {

// Retrieve the name of the file, return null if empty.
const name = basename(path, extension);
if (name === '') return null;
if (name === '' || name.startsWith('_')) return null;

// Return the name and extension.
return { extension, path, name };
Expand Down

0 comments on commit b8a2688

Please sign in to comment.