From c0c78d5a06e15a1fc84858ec1e0061d8d5ec8a20 Mon Sep 17 00:00:00 2001 From: RodrigoTomeES Date: Mon, 8 Apr 2024 21:46:21 +0200 Subject: [PATCH] fix(regex): escape the & character in hexadecimal --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 24386bc..fe6e855 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,7 +115,9 @@ export default function renameIntegration( Object.keys(classMap).forEach((key) => { const regex = new RegExp( - _options.matchClasses(escapeRegExp(key)), + _options + .matchClasses(escapeRegExp(key)) + .replaceAll('&', '&'), 'g', );