feat: fix record's password regex bug (#3421)

This commit is contained in:
DacongDA
2024-12-11 08:43:03 +08:00
committed by GitHub
parent 7322f67ae0
commit 0cf281cac0

View File

@ -33,7 +33,7 @@ var (
func init() {
logPostOnly = conf.GetConfigBool("logPostOnly")
passwordRegex = regexp.MustCompile("\"password\":\".+\"")
passwordRegex = regexp.MustCompile("\"password\":\"([^\"]*?)\"")
}
type Record struct {