From 3cd281b66fa3756cfafccd2b0cf42c26b59e58d4 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 9 Jan 2018 01:00:19 -0200 Subject: [PATCH] Fix (#176) --- app/containers/message/Markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/containers/message/Markdown.js b/app/containers/message/Markdown.js index bb6ab1e61..328eaae11 100644 --- a/app/containers/message/Markdown.js +++ b/app/containers/message/Markdown.js @@ -29,7 +29,7 @@ const BlockCode = ({ node, state }) => ( const rules = { username: { order: -1, - match: SimpleMarkdown.inlineRegex(/@[0-9a-zA-Z-_.]+/), + match: SimpleMarkdown.inlineRegex(/^@[0-9a-zA-Z-_.]+/), parse: capture => ({ content: capture[0] }), react: (node, output, state) => ({ type: 'custom', @@ -49,7 +49,7 @@ const rules = { }, heading: { order: -2, - match: SimpleMarkdown.inlineRegex(/#[0-9a-zA-Z-_.]+/), + match: SimpleMarkdown.inlineRegex(/^#[0-9a-zA-Z-_.]+/), parse: capture => ({ content: capture[0] }), react: (node, output, state) => ({ type: 'custom',