commit 894b38b
delthas
·
2026-03-11 12:31:11 +0000 UTC
parent 225d64e
Allow underscores in channel links Reported-by: Arsen See: https://codeberg.org/emersion/goguma/issues/340
1 files changed,
+1,
-1
+1,
-1
1@@ -97,7 +97,7 @@ var urlRegex *regexp.Regexp
2
3 func init() {
4 urlRegex, _ = xurls.StrictMatchingScheme(xurls.AnyScheme)
5- urlRegex = regexp.MustCompile(urlRegex.String() + `|#[\p{L}0-9#.-]*[\p{L}0-9]`)
6+ urlRegex = regexp.MustCompile(urlRegex.String() + `|#[\p{L}0-9#._-]*[\p{L}0-9]`)
7 urlRegex.Longest()
8 }
9