Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Preserve pasted icon filename extensions https://github.com/siyuan-note/siyuan/issues/12926

Daniela8b9709bc4db
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index a5599ba906..c33f8bea2b 100644
--- a/app/src/emoji/index.ts
+++ b/app/src/emoji/index.ts
@@ -1183,7 +1183,7 @@ export const openEmojiPanel = (
pastedCustomIconFile = file;
pastedCustomIconObjectURL = URL.createObjectURL(file);
networkIconInputElement.value = "";
- customIconNameElement.value = file.name.replace(/\.[^.]+$/, "");
+ customIconNameElement.value = file.name;
localizeNetworkIcon = false;
renderNetworkIconPreview();
customIconNameElement.focus();