Browse Source

fix: bug #1240

ShengYan, Zhang 1 year ago
parent
commit
6e20031dce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/fetch-prompts.mjs

+ 1 - 1
scripts/fetch-prompts.mjs

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