Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Nov 20, 2024
1 parent 457f3e4 commit 212c42f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,8 @@ const CONST = {
PATH_WITHOUT_POLICY_ID: /\/w\/[a-zA-Z0-9]+(\/|$)/,
POLICY_ID_FROM_PATH: /\/w\/([a-zA-Z0-9]+)(\/|$)/,
SHORT_MENTION: new RegExp(
// We are ensuring that the short mention is not inside a code block. So we check that the short mention
// is either not preceded by an open code block or not followed by a backtick on the same line.
`(?<!^[^\`\n]*(?:\`+[^\`\n]+\`+[^\`\n]+)*\`+[^\`\n]*)@[\\w\\-\\+\\'#@]+(?:\\.[\\w\\-\\'\\+]+)*|@[\\w\\-\\+\\'#@]+(?:\\.[\\w\\-\\'\\+]+)*(?![^\n]*\`)`,
'gim',
),
Expand Down

0 comments on commit 212c42f

Please sign in to comment.