mirror of https://github.com/stashapp/stash.git
19 lines
365 B
Go
19 lines
365 B
Go
package performer
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
var (
|
|
twitterURLRE = regexp.MustCompile(`^https?:\/\/(?:www\.)?twitter\.com\/`)
|
|
instagramURLRE = regexp.MustCompile(`^https?:\/\/(?:www\.)?instagram\.com\/`)
|
|
)
|
|
|
|
func IsTwitterURL(url string) bool {
|
|
return twitterURLRE.MatchString(url)
|
|
}
|
|
|
|
func IsInstagramURL(url string) bool {
|
|
return instagramURLRE.MatchString(url)
|
|
}
|