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

Function _isYamlLikeResource

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

Source from the content-addressed store, hash-verified

139 };
140
141 let _isYamlLikeResource = () => {
142 const utils = _getJsonAutoUtils();
143 if (typeof utils.isYAMLResource === 'function') {
144 return utils.isYAMLResource(location.href, document.contentType);
145 }
146
147 return /\.ya?ml$/i.test(new URL(location.href).pathname);
148 };
149
150 let _injectContentCss = () => {
151 if (cssInjected) {

Callers 1

_getJsonTextFunction · 0.85

Calls 1

_getJsonAutoUtilsFunction · 0.85

Tested by

no test coverage detected