MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isSpecialEditorFileName

Function isSpecialEditorFileName

frontend/src/utils/file.ts:172–178  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

170};
171
172const isSpecialEditorFileName = (value: string) => {
173 const normalized = value.trim().toLowerCase();
174 if (!normalized) {
175 return false;
176 }
177 return specialEditorFileNames.some((filename) => normalized === filename || normalized.startsWith(`${filename}.`));
178};
179
180export const resolveEditorLanguage = (path: string, extension = '', name = '') => {
181 if (isSpecialEditorFileName(name)) {

Callers 1

resolveEditorLanguageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected