We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24124d commit 7e7bb6dCopy full SHA for 7e7bb6d
1 file changed
mongorestore/ns/ns.go
@@ -38,8 +38,8 @@ var (
38
39
// Escape escapes instances of '\' and '*' with a backslash.
40
func Escape(in string) string {
41
- in = strings.Replace(in, `\`, `\\`, -1)
42
- in = strings.Replace(in, "*", `\*`, -1)
+ in = strings.ReplaceAll(in, `\`, `\\`)
+ in = strings.ReplaceAll(in, "*", `\*`)
43
return in
44
}
45
0 commit comments