Skip to content

Commit

Permalink
Merge branch 'main' into flav/tip-tap
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Dec 21, 2023
2 parents aa5eccf + cc5748c commit 4e6f6f0
Show file tree
Hide file tree
Showing 67 changed files with 2,452 additions and 783 deletions.
3 changes: 2 additions & 1 deletion connectors/src/connectors/slack/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ async function botAnswerMessage(
}
}
// Extract all ~mentions.
const mentionCandidates = message.match(/~[a-zA-Z0-9_-]{1,20}/g) || [];
const mentionCandidates =
message.match(/(?<!\S)~(?!~)([a-zA-Z0-9_-]{1,20})(?!\S)/g) || [];

const mentions: { assistantName: string; assistantId: string }[] = [];
if (mentionCandidates.length > 1) {
Expand Down
Loading

0 comments on commit 4e6f6f0

Please sign in to comment.