diff --git a/src/lib/decorate-text.jsx b/src/lib/decorate-text.jsx index 78ebec51f..f2df260a2 100644 --- a/src/lib/decorate-text.jsx +++ b/src/lib/decorate-text.jsx @@ -30,16 +30,6 @@ module.exports = (text, opts) => { )); } - // Match hashtags - if (opts.hashtags) { - replacedText = reactStringReplace(replacedText, /#([\w-]+)/g, (match, i) => ( - #{match} - )); - } - // Match scratch links /* Ported from the python... @@ -71,5 +61,15 @@ module.exports = (text, opts) => { )); } + // Match hashtags + if (opts.hashtags) { + replacedText = reactStringReplace(replacedText, /#([\w-]+)/g, (match, i) => ( + #{match} + )); + } + return replacedText; };