Skip to content

Commit

Permalink
fix: Remove unused regex escape char (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov authored Nov 21, 2024
1 parent dc4032a commit 8f89fd4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .changeset/rare-foxes-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@codecov/bundler-plugin-core": patch
"@codecov/bundle-analyzer": patch
"@codecov/nextjs-webpack-plugin": patch
"@codecov/nuxt-plugin": patch
"@codecov/remix-vite-plugin": patch
"@codecov/rollup-plugin": patch
"@codecov/solidstart-plugin": patch
"@codecov/sveltekit-plugin": patch
"@codecov/vite-plugin": patch
"@codecov/webpack-plugin": patch
---

Remove unused regex character escape from normalizePath
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/src/utils/normalizePath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const normalizePath = (path: string, format: string): string => {
// create a regex that will match the hash
// potential values gathered from: https://en.wikipedia.org/wiki/Base64
// added in `\-` and `\_` to account for the `-` `_` as they are included in the potential hashes: https://rollupjs.org/configuration-options/#output-hashcharacters
const regexString = `(${leadingRegex}(?<hash>[0-9a-zA-Z/\+=_\/+=-]+)${endingRegex})`;
const regexString = `(${leadingRegex}(?<hash>[0-9a-zA-Z/+=_\/+=-]+)${endingRegex})`;
const HASH_REPLACE_REGEX = new RegExp(regexString, "i");

// replace the hash with a wildcard and the delimiters
Expand Down

0 comments on commit 8f89fd4

Please sign in to comment.