MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _getExcludedOriginList

Function _getExcludedOriginList

apps/json-format/content-script.js:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 };
223
224 let _getExcludedOriginList = value => {
225 if (Array.isArray(value)) {
226 return value.map(item => String(item || '').trim()).filter(Boolean);
227 }
228
229 return String(value || '')
230 .split(/[\n,]+/)
231 .map(item => item.trim())
232 .filter(Boolean);
233 };
234
235 let _getCurrentOriginPattern = () => {
236 if (location.origin && location.origin !== 'null') {

Callers 2

_isCurrentOriginExcludedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected