AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix(lint): annotate the clipboard filename control-character strip (#694)
Dariusz Koryto084685af848a
diff --git a/apps/desktop/src/main/clipboard-write.mjs b/apps/desktop/src/main/clipboard-write.mjsindex 287eba33..717bc403 100644--- a/apps/desktop/src/main/clipboard-write.mjs+++ b/apps/desktop/src/main/clipboard-write.mjs@@ -18,6 +18,7 @@ const clipboardBytes = (value) => {const clipboardFilename = (value) => {if (typeof value !== "string") throw new TypeError("Clipboard filename must be a string");const base = value.split(/[\\/]/).pop() ?? "";+ // oxlint-disable-next-line no-control-regex -- strips control characters from clipboard filenamesconst cleaned = base.replace(/[\u0000-\u001f\u007f]/g, "").replace(/^\.+$/, "").trim().slice(0, 180);return cleaned || "attachment";};