From 595b3de790e8ba5135b1d0f9dd4547a22b55c170 Mon Sep 17 00:00:00 2001 From: Christopher McCulloh Date: Wed, 1 Nov 2023 10:18:10 -0400 Subject: [PATCH] updates micromatch version number --- lib/fs.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 6c2d4fe7..54f2c2a3 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -5,6 +5,7 @@ var path = require('path'); var util = require('handlebars-utils'); var utils = require('./utils'); var number = require('./number'); +var micromatch = require('micromatch'); var helpers = module.exports; /** @@ -56,7 +57,7 @@ helpers.readdir = function(dir, filter) { }); } if (utils.isGlob(filter)) { - return files.filter(utils.mm.matcher(filter)); + return files.filter((file) => micromatch.isMatch(file, filter)); } if (['isFile', 'isDirectory'].indexOf(filter) !== -1) { return files.filter(function(fp) { diff --git a/package.json b/package.json index b51f0d11..878eac3e 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "kind-of": "^6.0.0", "lazy-cache": "^2.0.2", "logging-helpers": "^1.0.0", - "micromatch": "^3.1.4", + "micromatch": "^4.0.5", "relative": "^3.0.2", "striptags": "^3.1.0", "to-gfm-code-block": "^0.1.1",