From 6e20031dcef62d8a5cabe7e343e9abb2aa6e11b7 Mon Sep 17 00:00:00 2001 From: "ShengYan, Zhang" Date: Thu, 4 May 2023 18:52:28 +0800 Subject: [PATCH] fix: bug #1240 --- scripts/fetch-prompts.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fetch-prompts.mjs b/scripts/fetch-prompts.mjs index 02b52a31..bfcf24f3 100644 --- a/scripts/fetch-prompts.mjs +++ b/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 [];