MCPcopy
hub / github.com/nodejs/undici / pathHasQueryOrFragment

Function pathHasQueryOrFragment

lib/core/util.js:95–100  ·  view source on GitHub ↗

* @param {string} url The path to check for query strings or fragments. * @returns {boolean} Returns true if the path contains a query string or fragment.

(url)

Source from the content-addressed store, hash-verified

93 * @returns {boolean} Returns true if the path contains a query string or fragment.
94 */
95function pathHasQueryOrFragment (url) {
96 return (
97 url.includes('?') ||
98 url.includes('#')
99 )
100}
101
102/**
103 * @param {string} url The URL to add the query params to

Callers 2

serializePathWithQueryFunction · 0.85
makeCacheKeyFunction · 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…