MCPcopy Create free account
hub / github.com/Ransomwave/azul / normalizeLuaLikeFileName

Function normalizeLuaLikeFileName

src/util/scriptFile.ts:31–33  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

29}
30
31export function normalizeLuaLikeFileName(fileName: string): string {
32 return fileName.replace(/\.lua$/i, ".luau");
33}
34
35export function stripScriptDisambiguationSuffix(scriptName: string): string {
36 return scriptName.replace(/__\{?[a-z0-9-]{6,}\}?$/i, "");

Callers 1

classifyScriptFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected