MCPcopy Create free account
hub / github.com/ccagml/leetcode-extension / genFileExt

Function genFileExt

src/utils/problemUtils.ts:93–99  ·  view source on GitHub ↗
(language: string)

Source from the content-addressed store, hash-verified

91}
92
93export function genFileExt(language: string): string {
94 const ext: string | undefined = langExt.get(language);
95 if (!ext) {
96 throw new Error(`The language "${language}" is not supported.`);
97 }
98 return ext;
99}
100
101export function fileMeta(content: string): ProblemMeta | null {
102 const result: RegExpExecArray | null = /@lc app=(.*) id=(.*|\w*|\W*|[\\u4e00-\\u9fa5]*) lang=(.*)/.exec(content);

Callers 1

getEntryFileFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected