fix: mention regex
This commit is contained in:
@@ -42,7 +42,7 @@ const renderContent = ({
|
|||||||
>
|
>
|
||||||
{reactStringReplace(
|
{reactStringReplace(
|
||||||
content,
|
content,
|
||||||
/(\s{1}\@[1-9]+\s{1})/g,
|
/(\s{1}\@[0-9]+\s{1})/g,
|
||||||
(match, idx) => {
|
(match, idx) => {
|
||||||
console.log("match", match);
|
console.log("match", match);
|
||||||
const uid = match.trim().slice(1);
|
const uid = match.trim().slice(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user