MCPcopy Index your code
hub / github.com/dataease/SQLBot / getQueryString

Function getQueryString

frontend/src/utils/utils.ts:230–237  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

228 )
229}
230export const getQueryString = (name: string) => {
231 const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i')
232 const r = window.location.search.substr(1).match(reg)
233 if (r != null) {
234 return unescape(r[2])
235 }
236 return null
237}
238
239export const getUrlParams = () => {
240 const urlParams = new URLSearchParams(window.location.search) as any

Callers 5

logoutFunction · 0.90
loadClientFunction · 0.90
isLarkPlatformFunction · 0.85
isPlatformFunction · 0.85
isPlatformClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected