Skip to content

Commit

Permalink
extract spartan:// and guppy:// URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 6, 2024
1 parent b511614 commit d1c95fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/text/plain/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
brTags = regexp.MustCompile(`<br\s*\/*>`)
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`)
)
Expand Down

0 comments on commit d1c95fa

Please sign in to comment.