From abd94a7f5a50f43c797a11b53549ae48fff667c3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 10 Oct 2016 03:43:44 +0200 Subject: add node_modules to address #4364 --- node_modules/lodash._escapestringchar/index.js | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 node_modules/lodash._escapestringchar/index.js (limited to 'node_modules/lodash._escapestringchar/index.js') diff --git a/node_modules/lodash._escapestringchar/index.js b/node_modules/lodash._escapestringchar/index.js new file mode 100644 index 000000000..f3b8c438f --- /dev/null +++ b/node_modules/lodash._escapestringchar/index.js @@ -0,0 +1,33 @@ +/** + * Lo-Dash 2.4.1 (Custom Build) + * Build: `lodash modularize modern exports="npm" -o ./npm/` + * Copyright 2012-2013 The Dojo Foundation + * Based on Underscore.js 1.5.2 + * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ + +/** Used to escape characters for inclusion in compiled string literals */ +var stringEscapes = { + '\\': '\\', + "'": "'", + '\n': 'n', + '\r': 'r', + '\t': 't', + '\u2028': 'u2028', + '\u2029': 'u2029' +}; + +/** + * Used by `template` to escape characters for inclusion in compiled + * string literals. + * + * @private + * @param {string} match The matched character to escape. + * @returns {string} Returns the escaped character. + */ +function escapeStringChar(match) { + return '\\' + stringEscapes[match]; +} + +module.exports = escapeStringChar; -- cgit v1.2.3