issue 25: only first backslash is escaped when converting to mozilla format
This commit is contained in:
parent
d00fa9130a
commit
ed8abc7cc4
3
edit.js
3
edit.js
|
@ -226,7 +226,8 @@ function toMozillaFormat() {
|
||||||
}
|
}
|
||||||
var mf = "@-moz-document ";
|
var mf = "@-moz-document ";
|
||||||
mf += section.meta.map(function(meta) {
|
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(", ");
|
}).join(", ");
|
||||||
return mf + " {\n" + section.code + "\n}";
|
return mf + " {\n" + section.code + "\n}";
|
||||||
}).join("\n\n");
|
}).join("\n\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user