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', );