Skip to content

Commit

Permalink
strings.ReplaceAll only availabe in 1.12+, so using old method for …
Browse files Browse the repository at this point in the history
…compatability
  • Loading branch information
Nick Canzoneri committed Oct 6, 2019
1 parent 2d02b69 commit fe57e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ func combineErrors(errs []error) error {
}

func escapeIndexName(index string) string {
return strings.ReplaceAll(index, ".", "\\.")
return strings.Replace(index, ".", "\\.", -1)
}

0 comments on commit fe57e38

Please sign in to comment.