Agent Zero AI framework
path recognition in ui fix
frdel04fdc67746a7
diff --git a/webui/js/messages.js b/webui/js/messages.jsindex 7db6f599c..059d6b65f 100644--- a/webui/js/messages.js+++ b/webui/js/messages.js@@ -629,9 +629,9 @@ function convertPathsToLinks(str) {return html;}- const prefix = `(?:[ \`'"\\n]|'|")`; // Use a non-capturing group for OR logic- const folder = `[a-zA-Z0-9_\\/\\.]`; // Characters allowed in folder names- const file = `[a-zA-Z0-9_\\/]`; // Characters allowed in file names+ const prefix = `(?:^|[ \`'"\\n]|'|")`; // Use a non-capturing group for OR logic+ const folder = `[a-zA-Z0-9_\\/.\\-]`; // Characters allowed in folder chain+ const file = `[a-zA-Z0-9_\\-\\/]`; // Characters allowed in file namesconst suffix = `(?<!\\.)`const regex = new RegExp(`(?<=${prefix})\\/${folder}*${file}${suffix}`, 'g');