An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Strip only trailing asset IDs from display names https://github.com/siyuan-note/siyuan/issues/19419
Daniel100c348c1faf
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.tsindex f801af2d41..52fec7edd7 100644--- a/app/src/util/pathName.ts+++ b/app/src/util/pathName.ts@@ -174,7 +174,7 @@ export const getAssetExtension = (assetPath: string) => {export const getAssetName = (assetPath: string) => {const pathWithoutQuery = getAssetPathWithoutQuery(assetPath);- return pathPosix().basename(pathWithoutQuery, getAssetExtension(pathWithoutQuery)).replace(/-\d{14}-\w{7}/, "");+ return pathPosix().basename(pathWithoutQuery, getAssetExtension(pathWithoutQuery)).replace(/-\d{14}-\w{7}$/, "");};export const isLocalPath = (link: string) => {