dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit d9011ec6585b9c3fecee08b8f4c8b7ce88325d2c
parent e2f754b3c56690139b603d1b13d05b286b66c45a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 19 Jan 2023 02:25:35 -0800

typo

Diffstat:
Mpkg/web/handlers/api/v1/topBarHandler.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go @@ -778,7 +778,7 @@ func convertLinksWithoutScheme(in string) string { var linkRgxStr = `(http|ftp|https):\/\/([\w\-_]+(?:(?:\.[\w\-_]+)+))([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?` var profileRgxStr = `/u/\w{3,20}` -var linkOrProfileRgx = regexp.MustCompile(`(` + linkRgxStr + `)|(` + profileRgxStr + `))`) +var linkOrProfileRgx = regexp.MustCompile(`((` + linkRgxStr + `)|(` + profileRgxStr + `))`) var userProfileLinkRgx = regexp.MustCompile(`^` + profileRgxStr + `$`) var youtubeComIDRgx = regexp.MustCompile(`watch\?v=([\w-]+)`) var youtubeComShosrtsIDRgx = regexp.MustCompile(`/shorts/([\w-]+)`)