Fix hashtag search to link to query without the #

This commit is contained in:
Paul Kaplan 2019-01-03 20:24:39 -05:00
parent 62585d9a06
commit 6f83dd09a8

View file

@ -32,11 +32,11 @@ module.exports = (text, opts) => {
// Match hashtags
if (opts.hashtags) {
replacedText = reactStringReplace(replacedText, /(#[\w-]+)/g, (match, i) => (
replacedText = reactStringReplace(replacedText, /#([\w-]+)/g, (match, i) => (
<a
href={`/search/projects?q=${match}`}
key={match + i}
>{match}</a>
>#{match}</a>
));
}