An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
Custom IAL attr name support more symbol (#8172)
颖逸825822ec9354
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.tsindex 6f220ba2cc..f596bd9096 100644--- a/app/src/menus/commonMenuItem.ts+++ b/app/src/menus/commonMenuItem.ts@@ -310,7 +310,7 @@ export const openFileAttr = (attrs: IObject, id: string, focusName = "bookmark")name = "custom-" + (item.parentElement.querySelector(".b3-text-field") as HTMLInputElement).value;}if (item.value.trim()) {- if (!/^[0-9a-zA-Z\-]*$/.test(name.replace("custom-", "")) || name === "custom-") {+ if (!/^custom-[_.\-0-9a-zA-Z]+$/.test(name)) {errorTip += name.replace("custom-", "") + ", ";return;}@@ -381,7 +381,7 @@ export const openAttr = (nodeElement: Element, protyle: IProtyle, focusName = "bname = "custom-" + (item.parentElement.querySelector(".b3-text-field") as HTMLInputElement).value;}if (item.value.trim()) {- if (!/^[0-9a-zA-Z\-]*$/.test(name.replace("custom-", "")) || name === "custom-") {+ if (!/^custom-[_.\-0-9a-zA-Z]+$/.test(name)) {errorTip += name.replace("custom-", "") + ", ";return;}