Skip to content

Commit

Permalink
Fix Mentions Regex (#111)
Browse files Browse the repository at this point in the history
Missing escaped dot
  • Loading branch information
Evgeny Kuzyakov committed Jan 25, 2023
1 parent d9f4b94 commit 84b05ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/remark/mentions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { findAndReplace } from "mdast-util-find-and-replace";

const mentionRegex =
/@((?:(?:[a-z\d]+[-_])*[a-z\d]+.)*(?:[a-z\d]+[-_])*[a-z\d]+)/gi;
/@((?:(?:[a-z\d]+[-_])*[a-z\d]+\.)*(?:[a-z\d]+[-_])*[a-z\d]+)/gi;

export default function mentions() {
function replace(value, username, match) {
Expand Down

0 comments on commit 84b05ae

Please sign in to comment.