MCPcopy
hub / github.com/labring/FastGPT / push

Function push

document/script/checkDocRefs.js:96–98  ·  view source on GitHub ↗
(url, type, index)

Source from the content-addressed store, hash-verified

94
95 const refs = [];
96 const push = (url, type, index) => {
97 if (typeof url === 'string' && url.length > 0) refs.push({ url, type, index });
98 };
99
100 const imgRe = /!\[[^\]]*\]\(\s*<?([^)\s>]+)>?(?:\s+"[^"]*")?\s*\)/g;
101 const linkRe = /(^|[^!])\[(?:[^\]]*?)\]\(\s*<?([^)\s>]+)>?(?:\s+"[^"]*")?\s*\)/g;

Callers 1

extractRefsFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected