From a563263b8d4c807d614c66a217c8869196c1cb4a Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 12 Oct 2025 18:34:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=80=9D=E6=BA=90?= =?UTF-8?q?=E7=AC=94=E8=AE=B0=E8=BD=AC=E6=8D=A2=E8=84=9A=E6=9C=AC=EF=BC=8C?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=20`<`=20?= =?UTF-8?q?`>`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/convert-siyuan-notes.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/convert-siyuan-notes.mjs b/scripts/convert-siyuan-notes.mjs index 9e1ad5c..43b10c4 100644 --- a/scripts/convert-siyuan-notes.mjs +++ b/scripts/convert-siyuan-notes.mjs @@ -87,7 +87,7 @@ function markdownTableToJson(markdownTable = '') { for (let i = indexJson.length - 1; i >= 0; i--) { let item = indexJson[i]; - let oldName = (item['title'] + '.md').replace(/("|:)/g, '_'); + let oldName = (item['title'] + '.md').replace(/[":<>]/g, '_'); let oldPath = join(markdownDir, oldName); let newName = item['slug'] + '.md'; let newPath = join(markdownDir, newName);