Skip to content

Commit

Permalink
Fixed a string escape bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Obbut authored Apr 10, 2017
1 parent a61584b commit 4ccf9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Value.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ extension String: Value {
case numericCast(SpecialCharacters.stringQuotationMark):
buffer.append(contentsOf: "\\\"".utf8)
case numericCast(SpecialCharacters.escape):
buffer.append(contentsOf: "\\".utf8)
buffer.append(contentsOf: "\\\\".utf8)
case numericCast(SpecialCharacters.tab):
buffer.append(contentsOf: "\\t".utf8)
case numericCast(SpecialCharacters.lineFeed):
Expand Down

0 comments on commit 4ccf9f0

Please sign in to comment.