1 2 3 4 5 6 7
'use strict'; const ESCAPED_CHARACTERS = /(\\|\"|\')/g; module.exports = function printString(val) { return val.replace(ESCAPED_CHARACTERS, '\\$1'); }