diff options
author | Matthew Holt <[email protected]> | 2020-03-24 10:52:05 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-03-24 10:52:05 -0600 |
commit | 95b2863df2718722a9addd93ac1e88f4debc5235 (patch) | |
tree | 1a6f525711a31d600e42a77992fe718538820dfe /admin.go | |
parent | 341d4fb8059f6aad5d371514fb851256add327cf (diff) | |
download | caddy-95b2863df2718722a9addd93ac1e88f4debc5235.tar.gz caddy-95b2863df2718722a9addd93ac1e88f4debc5235.zip |
admin: Fix regex for removing @id fields (closes #3187)
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -776,7 +776,7 @@ var ( // in the config. It also matches adjacent commas so that syntax // can be preserved no matter where in the object the field appears. // It supports string and most numeric values. -var idRegexp = regexp.MustCompile(`(?m),?\s*"` + idKey + `":\s?(-?[0-9]+(\.[0-9]+)?|(?U)".*")\s*,?`) +var idRegexp = regexp.MustCompile(`(?m),?\s*"` + idKey + `"\s*:\s*(-?[0-9]+(\.[0-9]+)?|(?U)".*")\s*,?`) const ( rawConfigKey = "config" |