summaryrefslogtreecommitdiff
path: root/internal/text/goldmark_parsers.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2025-01-31 02:42:55 -0800
committerLibravatar GitHub <noreply@github.com>2025-01-31 11:42:55 +0100
commitb9e0689359f347edc47487a8043c9004ead0770a (patch)
tree514077f83214533ec359a79e0033dcd9015d4ff2 /internal/text/goldmark_parsers.go
parent[feature] Add system message wrappers for pending replies and placeholder att... (diff)
downloadgotosocial-b9e0689359f347edc47487a8043c9004ead0770a.tar.xz
[bugfix] Extend parser to handle more non-Latin hashtags (#3700)
* Allow marks after NFC normalization Includes regression test for the Tamil example from #3618 * Disallow just numbers + marks + underscore as hashtag
Diffstat (limited to 'internal/text/goldmark_parsers.go')
-rw-r--r--internal/text/goldmark_parsers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/text/goldmark_parsers.go b/internal/text/goldmark_parsers.go
index b7cf4f9e9..e2c87e057 100644
--- a/internal/text/goldmark_parsers.go
+++ b/internal/text/goldmark_parsers.go
@@ -177,7 +177,7 @@ func (p *hashtagParser) Parse(
// Ignore initial '#'.
continue
- case !isPlausiblyInHashtag(r) &&
+ case !isPermittedInHashtag(r) &&
!isHashtagBoundary(r):
// Weird non-boundary character
// in the hashtag. Don't trust it.