aboutsummaryrefslogtreecommitdiff
path: root/util/util.go
blob: 7164937bca5387f6e79321a231f6fcf075683631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package util

import (
	"regexp"
)

func IsOnion(url string) bool {
	re := regexp.MustCompile(`\.onion`)
	if re.MatchString(url) {
		return true
	}

	return false
}