MCPcopy
hub / github.com/vitejs/vite / removeTimestampQuery

Function removeTimestampQuery

packages/vite/src/node/utils.ts:342–344  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

340
341const timestampRE = /\bt=\d{13}&?\b/
342export function removeTimestampQuery(url: string): string {
343 return url.replace(timestampRE, '').replace(trailingSeparatorRE, '')
344}
345
346export async function asyncReplace(
347 input: string,

Callers 10

transformRequestFunction · 0.90
sendFunction · 0.90
getModuleByUrlMethod · 0.90
getModuleByIdMethod · 0.90
_ensureEntryFromUrlMethod · 0.90
resolveUrlMethod · 0.90
transformMiddlewareFunction · 0.90
transformFunction · 0.90
prettifyUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected