service

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HtmlCommentRegexp = regexp.MustCompile(`<!--.*?-->`)
View Source
var JsConcatenationRegexp = regexp.MustCompile(`\([\w\d"'.+~-]+@[A-Za-z"'.+-]+\)`)
View Source
var JsConcatenationRemoveRegexp = regexp.MustCompile(`[^()"'+]+`)
View Source
var PlainEmailRegexp = regexp.MustCompile(`[\w\d.+~-]+@[A-Za-z-\d]+\.[a-z]{2,4}(\.[a-z]{2,4})?`)

Functions

func ParseAddresses

func ParseAddresses(addresses []string) []string

func ParseHtml

func ParseHtml(rawHtml string) string
func ParseLinks(scheme, host string, rawLinks []string) []string

func ParseUrl

func ParseUrl(rawUrl string) (*url.URL, error)

func RemoveDuplicates

func RemoveDuplicates(content []string) []string

func RemoveHtmlComments

func RemoveHtmlComments(content string) string

func SniffEmails added in v0.4.0

func SniffEmails(content string) []string

func SniffJsConcatenationEmails

func SniffJsConcatenationEmails(content string) []string

func SniffPhoneNumbers added in v0.4.0

func SniffPhoneNumbers(content string) []string

func SniffPlainEmails

func SniffPlainEmails(content string) []string

func SniffSocialMediaUrls added in v0.4.0

func SniffSocialMediaUrls(content string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL