Skip to content

Commit

Permalink
use ignoreCase by default
Browse files Browse the repository at this point in the history
  • Loading branch information
matortheeternal committed Nov 2, 2022
1 parent 37d2afa commit 633ddbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/javascripts/helpers/fileHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ fh.getDirectories = function(path) {

fh.getFiles = function(path, options) {
if (jetpack.exists(path) !== 'dir') return [];
if (!options.hasOwnProperty('ignoreCase'))
options.ignoreCase = true;
return jetpack.find(path, options)
.map(path => jetpack.path(path));
};
Expand Down

0 comments on commit 633ddbd

Please sign in to comment.