feat: support underscores in hashtags
This commit is contained in:
parent
ccbce0e317
commit
2e552c356c
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ export function EmbeddedHashtag({ hashtag }: { hashtag: string }) {
|
|||
}
|
||||
|
||||
export const embeddedHashtagRenderer: TEmbeddedRenderer = {
|
||||
regex: /#([\p{L}\p{N}\p{M}]+)/gu,
|
||||
regex: /#([\p{L}\p{N}\p{M}_]+)/gu,
|
||||
render: (hashtag: string, index: number) => {
|
||||
return <EmbeddedHashtag key={`hashtag-${index}-${hashtag}`} hashtag={hashtag} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue