From e70dcbdd536fba6402e112999e4d0896758d7c41 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Wed, 8 Dec 2021 22:05:17 -0600 Subject: [PATCH] Switch to ampersand for delimiter --- src/discord/showcase.go | 2 +- src/templates/src/project_edit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discord/showcase.go b/src/discord/showcase.go index ad2dda0f..b3732e3b 100644 --- a/src/discord/showcase.go +++ b/src/discord/showcase.go @@ -780,7 +780,7 @@ func messageHasLinks(content string) bool { return false } -var REDiscordTag = regexp.MustCompile(`>([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)`) +var REDiscordTag = regexp.MustCompile(`&([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)`) func getDiscordTags(content string) []string { matches := REDiscordTag.FindAllStringSubmatch(content, -1) diff --git a/src/templates/src/project_edit.html b/src/templates/src/project_edit.html index 6c4711da..37e2617f 100644 --- a/src/templates/src/project_edit.html +++ b/src/templates/src/project_edit.html @@ -78,7 +78,7 @@ value="{{ .ProjectSettings.Tag }}" />
e.g. "imgui" or "text-editor". Tags must be all lowercase, and can use hyphens to separate words.
-
If you have linked your Discord account, any #project-showcase messages with the tag ">" will automatically be associated with this project.
+
If you have linked your Discord account, any #project-showcase messages with the tag "&" will automatically be associated with this project.
{{ if and .Editing .User.IsStaff }}