(url)
| 450 | } |
| 451 | |
| 452 | function getUrlWithoutQuery(url) { |
| 453 | // Avoid `split('?')` so query-heavy URLs don't allocate large arrays. |
| 454 | const queryStart = url.indexOf('?'); |
| 455 | return queryStart === -1 ? url : url.slice(0, queryStart); |
| 456 | } |
| 457 | |
| 458 | function parseValue(value, options, type) { |
| 459 | if (type === 'string' && typeof value === 'string') { |
no outgoing calls
no test coverage detected