mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 17:07:58 +01:00
Fix command serialization bug.
This commit is contained in:
@@ -552,7 +552,7 @@ var Commands = Module("commands", {
|
|||||||
if (str)
|
if (str)
|
||||||
res.push(!/\n/.test(str) ? str :
|
res.push(!/\n/.test(str) ? str :
|
||||||
this.hereDoc && false ? "<<EOF\n" + String.replace(str, /\n$/, "") + "\nEOF"
|
this.hereDoc && false ? "<<EOF\n" + String.replace(str, /\n$/, "") + "\nEOF"
|
||||||
: String.replace(str, /\n/, "\n" + res[0].replace(/./g, " ").replace(/.$/, "\\")));
|
: String.replace(str, /\n/g, "\n" + res[0].replace(/./g, " ").replace(/.$/, "\\")));
|
||||||
return res.join(" ");
|
return res.join(" ");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user