Skip to content

Commit

Permalink
Merge pull request #5323 from nextcloud-libraries/fix/noid/respect-fo…
Browse files Browse the repository at this point in the history
…rward-slash-in-mentions

fix(NcRichContenteditable): respect forward slash as user mention character
  • Loading branch information
Antreesy committed Feb 28, 2024
2 parents 781134a + 594a2c7 commit 6f8f454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/richEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const MENTION_START = '(?:^|\\s)'
// Anything that is not text or end-of-line. Non-capturing group
const MENTION_END = '(?:[^a-z]|$)'
export const USERID_REGEX = new RegExp(`${MENTION_START}(@[a-zA-Z0-9_.@\\-']+)(${MENTION_END})`, 'gi')
export const USERID_REGEX_WITH_SPACE = new RegExp(`${MENTION_START}(@"[a-zA-Z0-9 _.@\\-']+")(${MENTION_END})`, 'gi')
export const USERID_REGEX_WITH_SPACE = new RegExp(`${MENTION_START}(@"[a-zA-Z0-9 _/.@\\-']+")(${MENTION_END})`, 'gi')

export default {
props: {
Expand Down

0 comments on commit 6f8f454

Please sign in to comment.