diff --git a/front/text/plain/convert.go b/front/text/plain/convert.go index 68e45086..7819be09 100644 --- a/front/text/plain/convert.go +++ b/front/text/plain/convert.go @@ -37,7 +37,7 @@ var ( brTags = regexp.MustCompile(``) openTags = regexp.MustCompile(`(?:<[a-zA-Z0-9]+\s*[^>]*>)+`) closeTags = regexp.MustCompile(`(?:<\/[a-zA-Z0-9]+\s*[^>]*>)+`) - urlRegex = regexp.MustCompile(`\b(https|http|gemini|titan|gopher|gophers):\/\/\S+\b`) + urlRegex = regexp.MustCompile(`\b(https|http|gemini|titan|gopher|gophers|spartan|guppy):\/\/\S+\b`) pDelim = regexp.MustCompile(`([^\n])\n\n+([^\n])`) mentionRegex = regexp.MustCompile(`\B@(\w+)(?:@(?:(?:\w+\.)+\w+(?::\d{1,5}){0,1})){0,1}\b`) )