Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix missing `/` in sitemap
Jakub Novakece7d68e1f67
diff --git a/apps/reverse-proxy/utils/replaceUrls.ts b/apps/reverse-proxy/utils/replaceUrls.tsindex 46320f677..d9a11250b 100644--- a/apps/reverse-proxy/utils/replaceUrls.ts+++ b/apps/reverse-proxy/utils/replaceUrls.ts@@ -1,5 +1,5 @@export function replaceUrls(text: string, urlPathName: string, prefix: string = '', lastChar: string = ''): string {- const pattern = lastChar ? `(?<url>${prefix}https://e2b-[^${lastChar}]*)/${lastChar}` : `(?<url>${prefix}https://e2b-.*)/`+ const pattern = lastChar ? `(?<url>${prefix}https://e2b-[^${lastChar}]*)/${lastChar}$` : `(?<url>${prefix}https://e2b-.*)/?\b`return text.replaceAll(new RegExp(pattern, 'g'),