dnscontrol/providers/msdns/escape.go
Tom Limoncelli 654736be29
Improve MSDNS naptr support (#1165)
* MSDNS: Improve reliability of zone dump

* Update tests

* MSDNS: Add initial NAPTR support

* Update

* fix tests

* fix tests

* Fixing integration tests for NAPTR

* Handle bad JSON. Handle NAPTR TTLs
2021-06-24 18:26:21 -04:00

8 lines
121 B
Go

package msdns
import "strings"
func escapePS(s string) string {
return `'` + strings.Replace(s, `'`, `"`, -1) + `'`
}