MCPcopy Create free account
hub / github.com/Semporia/Scripts / getParam

Function getParam

jd_get_share_code.js:400–405  ·  view source on GitHub ↗
(url, name)

Source from the content-addressed store, hash-verified

398 }
399
400 function getParam(url, name) {
401 const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
402 const r = url.match(reg);
403 if (r != null) return unescape(r[2]);
404 return null;
405 }
406
407 async function jdPlantBean() {
408 await plantBeanIndex();

Callers 1

jdPlantBeanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected