diff --git a/lib/protoparser/graphite/parser.go b/lib/protoparser/graphite/parser.go index b046955c7..74aa18a7d 100644 --- a/lib/protoparser/graphite/parser.go +++ b/lib/protoparser/graphite/parser.go @@ -257,7 +257,7 @@ func stripLeadingWhitespace(s string) string { var sanitizer = bytesutil.NewFastStringTransformer(func(s string) string { // Apply rule to drop some chars to preserve backwards compatibility - s = repeatedDots.ReplaceAllString(s, ".") + s = repeatedDots.ReplaceAllLiteralString(s, ".") // Replace any remaining illegal chars return allowedChars.ReplaceAllLiteralString(s, "_")