fix quotes in strings

This commit is contained in:
Erik 2016-02-16 14:21:10 -05:00
parent 7fe2dc2c70
commit 70d59ea9d4
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ struct SocketPacket {
type: SocketPacket.logType) type: SocketPacket.logType)
} }
} else if let str = arg as? String { } else if let str = arg as? String {
restOfMessage += "\"" + ((str["\n"] <~ "\\\\n")["\r"] <~ "\\\\r") + "\"," restOfMessage += "\"" + (((str["\n"] <~ "\\\\n")["\r"] <~ "\\\\r")["\""] <~ "\\\\\"") + "\","
} else if arg is NSNull { } else if arg is NSNull {
restOfMessage += "null," restOfMessage += "null,"
} else { } else {