gitlab.com/evatix-go/core@v1.3.55/regexnew/NewMustLock.go (about)

     1  package regexnew
     2  
     3  import "regexp"
     4  
     5  func NewMustLock(regularExpressionSyntax string) *regexp.Regexp {
     6  	regexMutex.Lock()
     7  	defer regexMutex.Unlock()
     8  
     9  	return CreateMust(regularExpressionSyntax)
    10  }