Skip to content

Commit

Permalink
Merge branch 'master' into reload-users-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchdev authored Apr 18, 2024
2 parents e7ba647 + 60e0445 commit e77af14
Show file tree
Hide file tree
Showing 6 changed files with 630 additions and 491 deletions.
2 changes: 1 addition & 1 deletion assets/chat/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function buildSearchCriteria(str, offset) {
if (endCaret > -1) post = post.substring(0, endCaret);

// Ignore the first char as part of the search and flag as a user only search
if (pre.lastIndexOf('@') === 0) {
if (pre.lastIndexOf('@') === 0 || pre.lastIndexOf('>') === 0) {
startCaret += 1;
pre = pre.substring(1);
useronly = true;
Expand Down
2 changes: 1 addition & 1 deletion assets/chat/js/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CHAT_COMMANDS = [
},
{
name: 'broadcast',
description: 'Broadcast a message to chat.',
description: 'Send a system-wide message to all users present in the chat.',
admin: true,
},
{
Expand Down
2 changes: 1 addition & 1 deletion assets/chat/js/formatters/MentionedUserFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default class MentionedUserFormatter {
if (message && message.mentioned && message.mentioned.length > 0) {
return str.replace(
new RegExp(
`((?:^|\\s)@?)(${message.mentioned.join('|')})(?=$|\\s|[.?!,'])`,
`((?:^|\\s)@?|>)(${message.mentioned.join('|')})(?=$|\\s|[.?!,'])`,
'igm',
),
`$1<span class="chat-user">$2</span>`,
Expand Down
2 changes: 1 addition & 1 deletion assets/chat/js/regex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e77af14

Please sign in to comment.