Skip to content

Commit 0cba08f

Browse files
KTrain5169Pasu4
andauthored
Update src/utils.ts
Co-authored-by: Pasu4 <117922538+Pasu4@users.noreply.github.com>
1 parent 10a0702 commit 0cba08f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export function escapeRegExp(string: string): string {
228228
* @throws Error if the substitution is invalid or if the capture group does not exist.
229229
*/
230230
export function substituteMatch(match: RegExpExecArray, replacement: string): string {
231-
const rx = /\$<.+?>|\${.+?}|\$\d+|\$~/g;
231+
const rx = /\$<.+?>|\${.+?}|\$\d+|\$./g;
232232
const substitutions = Array.from(replacement.matchAll(rx));
233233
const literals = replacement.split(rx);
234234
let result = '';

0 commit comments

Comments
 (0)