Skip to content

Commit 6c1261d

Browse files
authored
Merge pull request ChatGPTNextWeb#1241 from yanCode/main
fix: bug ChatGPTNextWeb#1240
2 parents 4697ea1 + 6e20031 commit 6c1261d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/fetch-prompts.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function fetchEN() {
4040
return raw
4141
.split("\n")
4242
.slice(1)
43-
.map((v) => v.split('","').map((v) => v.replace('"', "")));
43+
.map((v) => v.split('","').map((v) => v.replace(/^"|"$/g, '').replaceAll('""','"')));
4444
} catch (error) {
4545
console.error("[Fetch] failed to fetch en prompts", error);
4646
return [];

0 commit comments

Comments
 (0)