MCPcopy
hub / github.com/sindresorhus/query-string / getUrlWithoutQuery

Function getUrlWithoutQuery

base.js:309–313  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

307}
308
309function getUrlWithoutQuery(url) {
310 // Avoid `split('?')` so query-heavy URLs don't allocate large arrays.
311 const queryStart = url.indexOf('?');
312 return queryStart === -1 ? url : url.slice(0, queryStart);
313}
314
315function parseValue(value, options, type) {
316 if (type === 'string' && typeof value === 'string') {

Callers 2

parseUrlFunction · 0.85
stringifyUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…