mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Merge pull request #2597 from paulkaplan/fix-hashtag-search
[Master] Fix hashtag search
This commit is contained in:
commit
4c22c18737
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue