forked from XiaoMo/ChatGPT-Next-Web
fix: bug #1240
This commit is contained in:
parent
637660df2a
commit
6e20031dce
@ -40,7 +40,7 @@ async function fetchEN() {
|
|||||||
return raw
|
return raw
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.slice(1)
|
.slice(1)
|
||||||
.map((v) => v.split('","').map((v) => v.replace('"', "")));
|
.map((v) => v.split('","').map((v) => v.replace(/^"|"$/g, '').replaceAll('""','"')));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("[Fetch] failed to fetch en prompts", error);
|
console.error("[Fetch] failed to fetch en prompts", error);
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
Reference in New Issue
Block a user