Skip to content

Commit

Permalink
add comment for room mention regex
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Apr 10, 2024
1 parent b47e677 commit 003c781
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ export default class ExpensiMark {
},
},

/**
* A room mention is a string that starts with the '#' symbol and is followed by a valid room name.
*
* Note: We are allowing mentions in a format of #room-name The room name can contain any
* combination of letters and hyphens
*/
{
name: 'roomMentions',

Expand Down

0 comments on commit 003c781

Please sign in to comment.