mirror of https://github.com/VERT-sh/VERT.git
feat: fix case-sensitivity (#28)
* feat: testing nightly webhook * feat: add nightly label * chore: uguhhhh debug * fix: ?????? * fifiixxixifixiifixi * ???? * fix: hawk a tuah behind YOU * fix hawk tuah * test!! * sdfgsdgsdfg??? * oh no * fix: conversion casing
This commit is contained in:
parent
13b2f01259
commit
9c6d82500a
|
@ -34,7 +34,6 @@ export class VertFile {
|
|||
}
|
||||
|
||||
public async convert() {
|
||||
console.log(this.converter);
|
||||
if (!this.converter) throw new Error("No converter found");
|
||||
this.result = null;
|
||||
this.progress = 0;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
const from =
|
||||
"." + f.name.toLowerCase().split(".").slice(-1);
|
||||
const converter = converters.find((c) =>
|
||||
c.supportedFormats.includes(from),
|
||||
c.supportedFormats.includes(from.toLowerCase()),
|
||||
);
|
||||
if (!converter) resolve();
|
||||
const to =
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
const file = files.files[i];
|
||||
const converter = converters.find(
|
||||
(c) =>
|
||||
c.supportedFormats.includes(file.from) &&
|
||||
c.supportedFormats.includes(file.to),
|
||||
c.supportedFormats.includes(file.from.toLowerCase()) &&
|
||||
c.supportedFormats.includes(file.to.toLowerCase()),
|
||||
);
|
||||
if (!converter) throw new Error("No converter found");
|
||||
required.push(converter);
|
||||
|
|
Loading…
Reference in New Issue