This commit is contained in:
ShengYan, Zhang 2023-05-04 18:52:28 +08:00
parent 637660df2a
commit 6e20031dce

View File

@ -40,7 +40,7 @@ async function fetchEN() {
return raw
.split("\n")
.slice(1)
.map((v) => v.split('","').map((v) => v.replace('"', "")));
.map((v) => v.split('","').map((v) => v.replace(/^"|"$/g, '').replaceAll('""','"')));
} catch (error) {
console.error("[Fetch] failed to fetch en prompts", error);
return [];