11 lines
214 B
Go
11 lines
214 B
Go
|
package artifacts
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
// taken from mime/multipart/writer.go
|
||
|
var quoteEscaper = strings.NewReplacer("\\", "\\\\", `"`, "\\\"")
|
||
|
|
||
|
func escapeQuotes(s string) string {
|
||
|
return quoteEscaper.Replace(s)
|
||
|
}
|