Skip to content

Commit

Permalink
Added file detection for *.SVG files when working with folders (#1316)
Browse files Browse the repository at this point in the history
Currently, files named *.SVG are not being detected under Windows because of the case-sensitivity. This commit includes these in addition to *.svg files.
  • Loading branch information
AlpayY committed Feb 18, 2021
1 parent 082aee0 commit 16cc8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svgo/coa.js
Expand Up @@ -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 = () => {};

/**
Expand Down

0 comments on commit 16cc8cf

Please sign in to comment.