Any way to allow dots/periods in @mentions? #508
Answered
by
nfrasser
james-william-r
asked this question in
Q&A
-
Is there some way we can change the regex in the mentions plugin, specifically I'd like to allow dots/periods? |
Beta Was this translation helpful? Give feedback.
Answered by
nfrasser
Feb 5, 2025
Replies: 1 comment 1 reply
-
Hi @james-william-r, I have an custom plugin example for linkify v3 here: #418 (comment) Code may have to be tweaked to work with the latest linkify v4, but should largely look the same. Most recent mention code, for reference: https://github.com/nfrasser/linkifyjs/blob/v4.2.0/packages/linkify-plugin-mention/src/mention.mjs |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
james-william-r
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @james-william-r, I have an custom plugin example for linkify v3 here: #418 (comment)
Code may have to be tweaked to work with the latest linkify v4, but should largely look the same. Most recent mention code, for reference: https://github.com/nfrasser/linkifyjs/blob/v4.2.0/packages/linkify-plugin-mention/src/mention.mjs