From 2c2a71d429fedd64af82e0a3ccb2d4f32f9aaf3c Mon Sep 17 00:00:00 2001 From: John Date: Tue, 15 Jan 2019 20:20:34 +0800 Subject: [PATCH] fix issue in concurrent safe handling of gregex --- g/util/gregex/gregex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/util/gregex/gregex.go b/g/util/gregex/gregex.go index c6c74ebbc..5f3dfe281 100644 --- a/g/util/gregex/gregex.go +++ b/g/util/gregex/gregex.go @@ -13,7 +13,7 @@ import ( ) // 缓存对象,主要用于缓存底层regx对象 -var regxCache = gmap.NewStringInterfaceMap(true) +var regxCache = gmap.NewStringInterfaceMap() // 根据pattern生成对应的regexp正则对象 func getRegexp(pattern string) (*regexp.Regexp, error) {