mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 11:04:35 +00:00
Release v0.18.8
This commit is contained in:
parent
08bfdf798d
commit
c6a4c1da95
13 changed files with 54 additions and 45 deletions
|
|
@ -617,8 +617,8 @@ export function syncLogToContext(channelDir: string, excludeAfterTs?: string): n
|
|||
typeof entry.message.content === "string" ? entry.message.content : entry.message.content?.[0]?.text;
|
||||
if (content) {
|
||||
// Strip timestamp prefix for comparison (live messages have it, log messages don't)
|
||||
// Format: [YYYY-MM-DD HH:MM:SS] [username]: text
|
||||
content = content.replace(/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] /, "");
|
||||
// Format: [YYYY-MM-DD HH:MM:SS+HH:MM] [username]: text
|
||||
content = content.replace(/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}\] /, "");
|
||||
// Strip attachments section for comparison (live messages have it, log messages don't)
|
||||
const attachmentsIdx = content.indexOf("\n\n<slack_attachments>\n");
|
||||
if (attachmentsIdx !== -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue