Allow marks after NFC normalization

Includes regression test for the Tamil example from #3618
This commit is contained in:
Vyr Cossont 2025-01-27 09:41:10 -08:00
commit 13a2573ca2
5 changed files with 29 additions and 22 deletions

View file

@ -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.