Merge pull request #2597 from paulkaplan/fix-hashtag-search

[Master] Fix hashtag search
This commit is contained in:
Ray Schamp 2019-01-04 09:25:01 -05:00 committed by GitHub
commit 4c22c18737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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