fix: mention regex

This commit is contained in:
zerosoul
2022-04-14 21:31:39 +08:00
parent 4baa269811
commit 704b0687e5
@@ -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);