mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
ef081da1a6
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
11 lines
201 B
Go
11 lines
201 B
Go
package transip
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
var removeSlashesRegexp = regexp.MustCompile(`(?:\\(\\)+)|(?:\\)`)
|
|
|
|
func removeSlashes(s string) string {
|
|
return removeSlashesRegexp.ReplaceAllString(s, "$1")
|
|
}
|