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