MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / addUnderscoreToFirstPart

Function addUnderscoreToFirstPart

src/utils/dependencies.ts:137–143  ·  view source on GitHub ↗
(str: string = "")

Source from the content-addressed store, hash-verified

135};
136
137export const addUnderscoreToFirstPart = (str: string = ""): string => {
138 const parts = str.split(".");
139 if (parts.length > 2) {
140 parts[0] = parts[0] + "_";
141 }
142 return parts.join(".");
143};

Callers 1

flattenRoutesSubpathsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected