Skip to content

Commit 8f89fd4

Browse files
authored
fix: Remove unused regex escape char (#211)
1 parent dc4032a commit 8f89fd4

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changeset/rare-foxes-cheat.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@codecov/bundler-plugin-core": patch
3+
"@codecov/bundle-analyzer": patch
4+
"@codecov/nextjs-webpack-plugin": patch
5+
"@codecov/nuxt-plugin": patch
6+
"@codecov/remix-vite-plugin": patch
7+
"@codecov/rollup-plugin": patch
8+
"@codecov/solidstart-plugin": patch
9+
"@codecov/sveltekit-plugin": patch
10+
"@codecov/vite-plugin": patch
11+
"@codecov/webpack-plugin": patch
12+
---
13+
14+
Remove unused regex character escape from normalizePath

packages/bundler-plugin-core/src/utils/normalizePath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const normalizePath = (path: string, format: string): string => {
4545
// create a regex that will match the hash
4646
// potential values gathered from: https://en.wikipedia.org/wiki/Base64
4747
// added in `\-` and `\_` to account for the `-` `_` as they are included in the potential hashes: https://rollupjs.org/configuration-options/#output-hashcharacters
48-
const regexString = `(${leadingRegex}(?<hash>[0-9a-zA-Z/\+=_\/+=-]+)${endingRegex})`;
48+
const regexString = `(${leadingRegex}(?<hash>[0-9a-zA-Z/+=_\/+=-]+)${endingRegex})`;
4949
const HASH_REPLACE_REGEX = new RegExp(regexString, "i");
5050

5151
// replace the hash with a wildcard and the delimiters

0 commit comments

Comments
 (0)