MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _getCurrentOriginPattern

Function _getCurrentOriginPattern

apps/json-format/content-script.js:235–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 };
234
235 let _getCurrentOriginPattern = () => {
236 if (location.origin && location.origin !== 'null') {
237 return location.origin.replace(/\/+$/, '');
238 }
239 return location.hostname || location.href;
240 };
241
242 let _normalizeExcludedOriginPattern = value => String(value || '').trim().replace(/\/+$/, '').toLowerCase();
243

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected