MCPcopy
hub / github.com/bigskysoftware/htmx / getQuery

Function getQuery

test/util/util.js:93–101  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

91}
92
93function getQuery(url) {
94 var question = url.indexOf('?')
95 var hash = url.indexOf('#')
96 if (hash == -1 && question == -1) return ''
97 if (hash == -1) hash = url.length
98 return question == -1 || hash == question + 1
99 ? url.substring(hash)
100 : url.substring(question + 1, hash)
101}
102
103function getParameters(xhr) {
104 if (getHTTPMethod(xhr) == 'GET') {

Callers 1

getParametersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected