issue 25: only first backslash is escaped when converting to mozilla format

This commit is contained in:
Jason Barnabe 2012-05-05 22:48:03 -05:00
parent d00fa9130a
commit ed8abc7cc4

View File

@ -226,7 +226,8 @@ function toMozillaFormat() {
}
var mf = "@-moz-document ";
mf += section.meta.map(function(meta) {
return meta[0] + "(\"" + meta[1].replace("\\", "\\\\") + "\")";
// escape the meta according to css rules
return meta[0] + "(\"" + meta[1].replace(/\\/g, "\\\\") + "\")";
}).join(", ");
return mf + " {\n" + section.code + "\n}";
}).join("\n\n");