Switch to ampersand for delimiter
This commit is contained in:
parent
b88776af0c
commit
e70dcbdd53
|
@ -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)
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
value="{{ .ProjectSettings.Tag }}"
|
||||
/>
|
||||
<div class="c--dim f7 mt1">e.g. "imgui" or "text-editor". Tags must be all lowercase, and can use hyphens to separate words.</div>
|
||||
<div class="c--dim f7" id="tag-discord-info">If you have linked your Discord account, any #project-showcase messages with the tag "><span id="tag-preview"></span>" will automatically be associated with this project.</div>
|
||||
<div class="c--dim f7" id="tag-discord-info">If you have linked your Discord account, any #project-showcase messages with the tag "&<span id="tag-preview"></span>" will automatically be associated with this project.</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ if and .Editing .User.IsStaff }}
|
||||
|
|
Loading…
Reference in New Issue