Merge pull request #1241 from yanCode/main

fix: bug #1240
This commit is contained in:
Yifei Zhang
2023-05-04 19:08:53 +08:00
committed by GitHub

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 [];