MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / supportsFile

Method supportsFile

src/cm/modelist.ts:236–243  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

234 }
235
236 supportsFile(filename: string): boolean {
237 if (this.extRe?.test(filename)) return true;
238
239 return this.filenameMatchers.some((matcher) => {
240 matcher.lastIndex = 0;
241 return matcher.test(filename);
242 });
243 }
244
245 /**
246 * Get the CodeMirror language extension

Callers 3

hasPlainTextFallbackFunction · 0.80
getModeForPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected