Sha256: fbe282838e4c5d574c52daf7cebedddb8953d15bdc667fc6b7b20ef1ed1f424a

Contents?: true

Size: 155 Bytes

Versions: 81

Compression:

Stored size: 155 Bytes

Contents

'use strict';

const ESCAPED_CHARACTERS = /(\\|\"|\')/g;

module.exports = function printString(val) {
  return val.replace(ESCAPED_CHARACTERS, '\\$1');
}

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.10 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.9 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.8 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.7 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.6 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.5 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.4 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.3 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.2 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.1 node_modules/pretty-format/printString.js
isomorfeus-preact-10.6.0 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.11 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.10 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.9 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.8 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.7 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.6 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.5 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.4 node_modules/pretty-format/printString.js
isomorfeus-preact-10.5.3 node_modules/pretty-format/printString.js