diff --git a/lib/primitiveValues/string.js b/lib/primitiveValues/string.js index e9e4d85..bf9ec32 100644 --- a/lib/primitiveValues/string.js +++ b/lib/primitiveValues/string.js @@ -25,6 +25,13 @@ exports.tag = tag // http://graphemica.com/blocks/control-pictures where applicable. function basicEscape (string) { return string.replace(/\\/g, '\\\\') + .replace(/\x00/g, "␀") + .replace(/\x1b/g, "␛") + .replace(/\x11/g, "␑") + .replace(/\x12/g, "␒") + .replace(/\x13/g, "␓") + .replace(/\x14/g, "␔") + } const CRLF_CONTROL_PICTURE = '\u240D\u240A'