MCPcopy Create free account
hub / github.com/027xiguapi/code-box / getQueryString

Function getQueryString

component/ui/weixinPanel.tsx:77–80  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

75 base = url.replace(/(\?|#).*$/, "")
76 let pureUrl = url
77 const getQueryString = function (key: string) {
78 let ret = url.match(new RegExp("(?:\\?|&)(" + key + "=[^&#]*)", "i"))
79 return null === ret ? "" : ret[1]
80 }
81 for (const i in rules) {
82 const rule = rules[i as keyof typeof rules]
83 if (rule.testReg.test(url)) {

Callers 1

getPureLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected