(url: string, queryToInject: string)
| 333 | } |
| 334 | |
| 335 | export function injectQuery(url: string, queryToInject: string): string { |
| 336 | const { file, postfix } = splitFileAndPostfix(url) |
| 337 | const normalizedFile = isWindows ? slash(file) : file |
| 338 | return `${normalizedFile}?${queryToInject}${postfix[0] === '?' ? `&${postfix.slice(1)}` : /* hash only */ postfix}` |
| 339 | } |
| 340 | |
| 341 | const timestampRE = /\bt=\d{13}&?\b/ |
| 342 | export function removeTimestampQuery(url: string): string { |
no test coverage detected