From 003c781b3cae89dd6422e5a5f212adee7d26d6b8 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Wed, 10 Apr 2024 11:18:57 +0200 Subject: [PATCH] add comment for room mention regex --- lib/ExpensiMark.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ExpensiMark.js b/lib/ExpensiMark.js index e42ac07f..7d5be4e2 100644 --- a/lib/ExpensiMark.js +++ b/lib/ExpensiMark.js @@ -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',