Skip to content

Commit 38b0dc1

Browse files
fix: remove unnecessary slash from regex
1 parent 0e6f93b commit 38b0dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite-plugin/src/stylesPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function stylesPlugin (options: Options): Plugin {
6767
load (id) {
6868
// When Vite is configured with `optimizeDeps.exclude: ['vuetify']`, the
6969
// received id contains a version hash (e.g. \0__void__?v=893fa859).
70-
if (new RegExp(`^${PLUGIN_VIRTUAL_PREFIX}__void__(\\?.*)?$/`).test(id)) {
70+
if (new RegExp(`^${PLUGIN_VIRTUAL_PREFIX}__void__(\\?.*)?$`).test(id)) {
7171
return ''
7272
}
7373

0 commit comments

Comments
 (0)