ejabberdsql2prosody: Added support for the escape sequence '\\' in strings

Sun, 26 Jul 2009 17:29:56 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 26 Jul 2009 17:29:56 +0500
changeset 1598
d82e13d57821
parent 1597
84328a4df655
child 1599
308986a3e66a

ejabberdsql2prosody: Added support for the escape sequence '\\' in strings

tools/ejabberdsql2prosody.lua file | annotate | diff | comparison | revisions
--- 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()

mercurial