go-watchdog/vendor/github.com/UnnoTed/fileb0x/config/regexp.go

12 lines
245 B
Go
Raw Normal View History

2019-06-25 01:57:21 +00:00
package config
import "regexp"
var (
// used to remove comments from json
regexComments = regexp.MustCompile(`\/\/([\w\s\'].*)`)
// SafeVarName is used to remove special chars from paths
SafeVarName = regexp.MustCompile(`[^a-zA-Z0-9]`)
)