Changeset

1598:d82e13d57821

ejabberdsql2prosody: Added support for the escape sequence '\\' in strings
author Waqas Hussain <waqas20@gmail.com>
date Sun, 26 Jul 2009 17:29:56 +0500
parents 1597:84328a4df655
children 1599:308986a3e66a
files tools/ejabberdsql2prosody.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ejabberdsql2prosody.lua	Sun Jul 26 15:36:06 2009 +0500
+++ b/tools/ejabberdsql2prosody.lua	Sun Jul 26 17:29:56 2009 +0500
@@ -39,6 +39,7 @@
 local function unescape(s)
 	if s == "\\'" then return "'"; end
 	if s == "\\n" then return "\n"; end
+	if s == "\\\\" then return "\\"; end
 	error("Unknown escape sequence: "..s);
 end
 local function readString()