Select Git revision
-
Md. Alim Ul Karim authoredMd. Alim Ul Karim authored
IsMatchLock.go 309 B
package regexnew
// IsMatchLock creates new regex using lock
// and then calls match
// if doesn't match or invalid regex then returns false.
func IsMatchLock(regex, comparing string) bool {
regEx, _ := CreateLock(regex)
if regEx != nil && regEx.MatchString(comparing) {
return true
}
return false
}