Skip to content

Commit

Permalink
Merge pull request #804 from NJ-2020/fix/46299
Browse files Browse the repository at this point in the history
fix: room chat - whisper displays 1 mention when 2 mentions are send in specific way
  • Loading branch information
rlinoz authored Oct 15, 2024
2 parents 8531f8a + f1004df commit 4429ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default class ExpensiMark {
{
name: 'reportMentions',

regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,99})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu,
regex: /(?<=^[*~_]?|[ \n][*~_]?)(#[\p{Ll}0-9-]{1,99})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu,
replacement: '<mention-report>$1</mention-report>',
},

Expand Down

0 comments on commit 4429ef6

Please sign in to comment.