diff --git a/python/packages/devui/agent_framework_devui/_deployment.py b/python/packages/devui/agent_framework_devui/_deployment.py index 1693600108..eaf40e4c45 100644 --- a/python/packages/devui/agent_framework_devui/_deployment.py +++ b/python/packages/devui/agent_framework_devui/_deployment.py @@ -470,9 +470,11 @@ async def _deploy_to_azure( ) elif "https://" in line_text: # Try to extract all URLs and check if any is on azurecontainerapps.io - urls = re.findall(r'https://[^\s]+', line_text) + urls = re.findall(r'https://[^\s<>"]+', line_text) for url in urls: - host = urlparse(url).hostname + # Strip common trailing punctuation to ensure clean URL parsing + url_clean = url.rstrip('.,;:!?\'")}]') + host = urlparse(url_clean).hostname if host and (host == "azurecontainerapps.io" or host.endswith(".azurecontainerapps.io")): await event_queue.put( DeploymentEvent(type="deploy.progress", message="Deployment URL generated!")