From 9f365f49b0f6e0e52ab0174048dfc8f31d3c9799 Mon Sep 17 00:00:00 2001
From: Levi Neely <141506390+lneely@users.noreply.github.com>
Date: Thu, 16 Jul 2026 07:09:16 +0200
Subject: [PATCH] fix backtick regex: prevent matching across newlines
---
gui/main.qml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gui/main.qml b/gui/main.qml
index e74c8cc..c16e803 100644
--- a/gui/main.qml
+++ b/gui/main.qml
@@ -523,7 +523,7 @@ ApplicationWindow {
// Escape HTML entities first
let escaped = text.replace(/&/g, '&').replace(//g, '>')
// Inline code: `text` → monospace styled span
- escaped = escaped.replace(/`([^`]+)`/g, '$1')
+ escaped = escaped.replace(/`([^`\n]+)`/g, '$1')
// Convert newlines to
escaped = escaped.replace(/\n/g, '
')
// Match /absolute/path or /absolute/path:line