Documentation
¶
Index ¶
- Variables
- func ParseAddresses(addresses []string) []string
- func ParseHtml(rawHtml string) string
- func ParseLinks(scheme, host string, rawLinks []string) []string
- func ParseUrl(rawUrl string) (*url.URL, error)
- func RemoveDuplicates(content []string) []string
- func RemoveHtmlComments(content string) string
- func SniffEmails(content string) []string
- func SniffJsConcatenationEmails(content string) []string
- func SniffPhoneNumbers(content string) []string
- func SniffPlainEmails(content string) []string
- func SniffSocialMediaUrls(content string) []string
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 ParseLinks ¶
func RemoveDuplicates ¶
func RemoveHtmlComments ¶
func SniffEmails ¶ added in v0.4.0
func SniffPhoneNumbers ¶ added in v0.4.0
func SniffPlainEmails ¶
func SniffSocialMediaUrls ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.