mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
relay and archive sitemaps xml (with a nice hack because htmlgo is not xml-friendly.)
This commit is contained in:
2
utils.go
2
utils.go
@@ -22,6 +22,8 @@ import (
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
)
|
||||
|
||||
const XML_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
|
||||
var (
|
||||
urlSuffixMatcher = regexp.MustCompile(`[\w-_.]+\.[\w-_.]+(\/[\/\w]*)?$`)
|
||||
nostrEveryMatcher = regexp.MustCompile(`nostr:((npub|note|nevent|nprofile|naddr)1[a-z0-9]+)\b`)
|
||||
|
||||
Reference in New Issue
Block a user