fix issue in concurrent safe handling of gregex

This commit is contained in:
John
2019-01-15 20:20:34 +08:00
parent f900414e38
commit 2c2a71d429

View File

@ -13,7 +13,7 @@ import (
)
// 缓存对象主要用于缓存底层regx对象
var regxCache = gmap.NewStringInterfaceMap(true)
var regxCache = gmap.NewStringInterfaceMap()
// 根据pattern生成对应的regexp正则对象
func getRegexp(pattern string) (*regexp.Regexp, error) {