Skip to content

Commit f4b4431

Browse files
authored
refactor: assets regexp use non-capture (#23491)
1 parent 6a84c72 commit f4b4431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/vite/src/node/constants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export const KNOWN_ASSET_TYPES: string[] = [
188188
]
189189

190190
export const DEFAULT_ASSETS_RE: RegExp = new RegExp(
191-
`\\.(` + KNOWN_ASSET_TYPES.join('|') + `)(\\?.*)?$`,
191+
`\\.(?:` + KNOWN_ASSET_TYPES.join('|') + `)(\\?.*)?$`,
192192
'i',
193193
)
194194

0 commit comments

Comments
 (0)