There was an error while loading. Please reload this page.
1 parent 10a0702 commit 0cba08fCopy full SHA for 0cba08f
1 file changed
src/utils.ts
@@ -228,7 +228,7 @@ export function escapeRegExp(string: string): string {
228
* @throws Error if the substitution is invalid or if the capture group does not exist.
229
*/
230
export function substituteMatch(match: RegExpExecArray, replacement: string): string {
231
- const rx = /\$<.+?>|\${.+?}|\$\d+|\$~/g;
+ const rx = /\$<.+?>|\${.+?}|\$\d+|\$./g;
232
const substitutions = Array.from(replacement.matchAll(rx));
233
const literals = replacement.split(rx);
234
let result = '';
0 commit comments