Skip to content

Commit

Permalink
fix(regex): escape the & character in hexadecimal
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoTomeES committed Apr 8, 2024
1 parent 3449e2e commit c0c78d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);

Expand Down

0 comments on commit c0c78d5

Please sign in to comment.