mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply template string transform.
This commit is contained in:
@@ -16,7 +16,7 @@ var stringEscapes = {
|
||||
* @returns {string} Returns the escaped character.
|
||||
*/
|
||||
function escapeStringChar(chr) {
|
||||
return '\\' + stringEscapes[chr];
|
||||
return `\\${ stringEscapes[chr] }`;
|
||||
}
|
||||
|
||||
export default escapeStringChar;
|
||||
|
||||
Reference in New Issue
Block a user