Skip to content

Commit dc29e1a

Browse files
committed
fix(encoding): replace Unicode em dashes and ellipsis with ASCII equivalents
In JS comments and string literals, replace: - U+2014 em dash with ASCII '--' - U+2026 ellipsis with HTML entity … Prevents double-encoding issues consistent with project conventions (PR #38).
1 parent 201f1d8 commit dc29e1a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/static/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@
999999
setTimeout(() => target.classList.remove('msg-jump-highlight'), 1500);
10001000
};
10011001

1002-
// UI-13: event delegation intercepts clicks on any .msg-reply-quote in #messages
1002+
// UI-13: event delegation -- intercepts clicks on any .msg-reply-quote in #messages
10031003
document.getElementById('messages')?.addEventListener('click', (e) => {
10041004
const btn = e.target.closest('button.msg-reply-quote');
10051005
if (!btn) return;
@@ -1206,9 +1206,9 @@
12061206
priorityBadgeHtml = '<span class="msg-priority-badge msg-priority-system" title="System message">SYSTEM</span>';
12071207
}
12081208

1209-
// Reply-to quote (UP-14) UI-13: clickable button with event delegation
1209+
// Reply-to quote (UP-14) -- UI-13: clickable button with event delegation
12101210
const replyQuoteHtml = m.reply_to_msg_id
1211-
? `<button class="msg-reply-quote" data-reply-target="${esc(m.reply_to_msg_id)}" title="Jump to message ${esc(m.reply_to_msg_id)}">&#8617; In reply to: <em>${esc(m.reply_to_msg_id.slice(0, 8))}</em></button>`
1211+
? `<button class="msg-reply-quote" data-reply-target="${esc(m.reply_to_msg_id)}" title="Jump to message ${esc(m.reply_to_msg_id)}">&#8617; In reply to: <em>${esc(m.reply_to_msg_id.slice(0, 8))}&#8230;</em></button>`
12121212
: '';
12131213

12141214
// Edit indicator (UP-21)

src/static/js/shared-modals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
// UI-14: get or register a browser-session agent to provide auth for thread creation
103103
const uiAgent = window.AcbUiAgent ? await window.AcbUiAgent.ensureUiAgent() : null;
104104
if (!uiAgent) {
105-
console.error("[Thread Create] Could not obtain UI agent token cannot create thread");
105+
console.error("[Thread Create] Could not obtain UI agent token -- cannot create thread");
106106
return;
107107
}
108108

src/static/js/shared-ui-agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const parsed = JSON.parse(cached);
1111
if (parsed.agent_id && parsed.token) return parsed;
1212
} catch (_) {
13-
// corrupted fall through to re-register
13+
// corrupted -- fall through to re-register
1414
}
1515
}
1616

0 commit comments

Comments
 (0)