diff options
author | Tuomas Siipola | 2020-07-20 13:33:49 +0300 |
---|---|---|
committer | Tuomas Siipola | 2020-07-20 13:33:49 +0300 |
commit | 5669dcc3b69b43bd0a62b64db0e0d50d3f19d1b0 (patch) | |
tree | a496a7a2a03337aca1dc23f6ebdd5a0c39cbf045 | |
parent | 1a3b0ce96eec3b8e3c6303e30dd542b2694121f3 (diff) |
Make extension case-insensitive
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ const bin = path.resolve(__dirname, "pio"); module.exports = function (source) { const callback = this.async(); - const ext = path.extname(this.resourcePath).slice(1); + const ext = path.extname(this.resourcePath).slice(1).toLowerCase(); const process = execFile( bin, ["--output-format", ext === "jpg" ? "jpeg" : ext], |