From 16cc8cf3a0eeecb499ae492dacf2ed51b3805b55 Mon Sep 17 00:00:00 2001 From: AlpayY Date: Thu, 18 Feb 2021 15:50:12 +0100 Subject: [PATCH] Added file detection for *.SVG files when working with folders (#1316) Currently, files named *.SVG are not being detected under Windows because of the case-sensitivity. This commit includes these in addition to *.svg files. --- lib/svgo/coa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svgo/coa.js b/lib/svgo/coa.js index 63fcb74f7..de7e17a96 100644 --- a/lib/svgo/coa.js +++ b/lib/svgo/coa.js @@ -8,7 +8,7 @@ const { loadConfig, optimize } = require('../svgo-node.js'); const pluginsMap = require('../../plugins/plugins.js'); const PKG = require('../../package.json'); const { encodeSVGDatauri, decodeSVGDatauri } = require('./tools.js'); -const regSVGFile = /\.svg$/; +const regSVGFile = /\.svg$/i; const noop = () => {}; /**