We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301bb25 commit 4b545beCopy full SHA for 4b545be
Sources/LLBuildManifest/DOTManifestSerializer.swift
@@ -32,9 +32,10 @@ public struct DOTManifestSerializer {
32
return label
33
}
34
35
- /// Quote the name and escape the quotes
+ /// Quote the name and escape the quotes and backslashes
36
func quoteName(_ name: String) -> String {
37
- return "\"" + name.replacingOccurrences(of: "\"", with: "\\\"") + "\""
+ return "\"" + name.replacingOccurrences(of: "\"", with: "\\\"")
38
+ .replacingOccurrences(of: "\\", with: "\\\\") + "\""
39
40
41
public mutating func writeDOT<Stream: TextOutputStream>(to stream: inout Stream) {
0 commit comments