strings.Replace replaced by strings.ReplaceAll helper function
This commit is contained in:
parent
465ea91381
commit
e28b61e2f0
1 changed files with 2 additions and 2 deletions
|
@ -48,9 +48,9 @@ func GetRecord(entry Record) Record {
|
|||
record := ExtractAddressFromReverse(entry.Fqdn)
|
||||
var recordFormated string
|
||||
if reverseCheck == 1 {
|
||||
recordFormated = strings.Replace(record, ".", "-", -1)
|
||||
recordFormated = strings.ReplaceAll(record, ".", "-")
|
||||
} else {
|
||||
recordFormated = strings.Replace(record, ":", "-", -1)
|
||||
recordFormated = strings.ReplaceAll(record, ":", "-")
|
||||
}
|
||||
result.Content = fmt.Sprintf(result.Content, recordFormated)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue