diff --git a/core/lib/data_loader.js b/core/lib/data_loader.js index a91911f3e..84044eefd 100644 --- a/core/lib/data_loader.js +++ b/core/lib/data_loader.js @@ -13,7 +13,7 @@ const glob = require('glob'), * @returns {*} */ function loadFile(dataFilesPath, fsDep) { - const dataFilesFullPath = dataFilesPath + '*.{json,yml,yaml}'; + const dataFilesFullPath = dataFilesPath + '{.,[!-]*.}{json,yml,yaml}'; if (dataFilesPath) { const dataFiles = glob.sync(dataFilesFullPath), diff --git a/test/files/_data/foo-other.json b/test/files/_data/foo-other.json new file mode 100644 index 000000000..7b6c4a3c4 --- /dev/null +++ b/test/files/_data/foo-other.json @@ -0,0 +1,3 @@ +{ + "foo": "wrong" +} \ No newline at end of file