Skip to content

Commit

Permalink
fix(utils): vitejs#3761 include all characters after question mark an…
Browse files Browse the repository at this point in the history
…d number sign
  • Loading branch information
Sociosarbis committed Jun 12, 2021
1 parent 9703bcd commit 8d64665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/utils.ts
Expand Up @@ -94,8 +94,8 @@ export function ensureVolumeInPath(file: string): string {
return isWindows ? path.resolve(file) : file
}

export const queryRE = /\?.*$/
export const hashRE = /#.*$/
export const queryRE = /\?.*$/s
export const hashRE = /#.*$/s

export const cleanUrl = (url: string): string =>
url.replace(hashRE, '').replace(queryRE, '')
Expand Down

0 comments on commit 8d64665

Please sign in to comment.