Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: decode uppercase \uXXXX escapes in unicodeToChar (#43709)

Quan Kaiyi8c64985ffa70
diff --git a/web/service/base.ts b/web/service/base.ts
index 37cd62c5c20..64456125a2c 100644
--- a/web/service/base.ts
+++ b/web/service/base.ts
@@ -351,7 +351,7 @@ export const buildSigninUrlWithRedirect = (): string => {
function unicodeToChar(text: string) {
if (!text) return ''
- return text.replace(/\\u([0-9a-f]{4})/g, (_match, p1) => {
+ return text.replace(/\\u([0-9a-f]{4})/gi, (_match, p1) => {
return String.fromCharCode(Number.parseInt(p1, 16))
})
}