Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(chat): export referencedPathIdentity for delivered-copy source matching

meutex697a4d083569
diff --git a/server/message-file.ts b/server/message-file.ts
index e39774fa35..4544b4a264 100644
--- a/server/message-file.ts
+++ b/server/message-file.ts
@@ -136,7 +136,7 @@ export function referencedFileName(href: string): string | null {
}
/** Lexical on purpose: `resolve` and `fileURLToPath` follow the runner OS, and `/C:/notes.md` is not `C:\\notes.md`. */
-function referencedPathIdentity(href: string, allowForwardSlashUNC = true): string {
+export function referencedPathIdentity(href: string, allowForwardSlashUNC = true): string {
const path = referencedPath(href, true, allowForwardSlashUNC);
if (/^[a-z]:[\\/]/i.test(path) || path.startsWith("\\\\") || path.startsWith("//")) {
return `windows:${win32.resolve(path)}`;