'use strict'; module.exports = string => string.replace( /(?<=(?:^|[^\\])(?:\\\\)*)(?(?:`|\$(?={)))/g, '\\$', );