mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 02:59:31 -06:00
fix regex
This commit is contained in:
parent
c85c63680d
commit
96048d7f07
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ var (
|
|||
mentionNameRegex = regexp.MustCompile(mentionNameRegexString)
|
||||
|
||||
// mention regex can be played around with here: https://regex101.com/r/qwM9D3/1
|
||||
mentionFinderRegexString = `(?: |^|\W)(@[a-zA-Z0-9_]+(?:@[a-zA-Z0-9_\-\.]+)?)(?:[^a-zA-Z0-9]|\W)`
|
||||
mentionFinderRegexString = `(?: |^|\W)?(@[a-zA-Z0-9_]+(?:@[a-zA-Z0-9_\-\.]+)?)(?:[^a-zA-Z0-9]|\W)`
|
||||
mentionFinderRegex = regexp.MustCompile(mentionFinderRegexString)
|
||||
|
||||
// hashtag regex can be played with here: https://regex101.com/r/Vhy8pg/1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue