From 0b0a39ec94fefa43678b8a7b94679b33c33f8e34 Mon Sep 17 00:00:00 2001 From: kainstar <461345042@qq.com> Date: Thu, 3 Jul 2025 18:25:36 +0800 Subject: [PATCH 1/3] fix: escape slash char when stringify name --- src/stringify.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stringify.ts b/src/stringify.ts index 216d070a..9ab73fa4 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -25,6 +25,7 @@ const charsToEscapeInName = new Set( " ", ".", "%", + "/" ].map((c) => c.charCodeAt(0)), ); From 4d9cc74c8aad6c850ac90365cb742c26fdaf0f4e Mon Sep 17 00:00:00 2001 From: kainstar <461345042@qq.com> Date: Fri, 4 Jul 2025 12:19:47 +0800 Subject: [PATCH 2/3] fix: add comma in charsToEscapeInName --- src/stringify.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stringify.ts b/src/stringify.ts index 9ab73fa4..3a141e34 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -25,7 +25,8 @@ const charsToEscapeInName = new Set( " ", ".", "%", - "/" + "/", + "," ].map((c) => c.charCodeAt(0)), ); From 49c09ecca65950143964301e968813773de7f864 Mon Sep 17 00:00:00 2001 From: kainstar <461345042@qq.com> Date: Fri, 4 Jul 2025 14:24:54 +0800 Subject: [PATCH 3/3] fix: add semicolon in charsToEscapeInName --- src/stringify.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stringify.ts b/src/stringify.ts index 3a141e34..bee898d1 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -26,7 +26,8 @@ const charsToEscapeInName = new Set( ".", "%", "/", - "," + ",", + ";" ].map((c) => c.charCodeAt(0)), );