MCPcopy Index your code
hub / github.com/NativeScript/nativescript-sdk-examples-js / updateSubfoldersName

Function updateSubfoldersName

scripts/build.js:22–24  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

20
21// Folder name 'ui-examples' becomes 'ui' (the way it should be displayed in the documentation tree)
22function updateSubfoldersName(str) {
23 return str.slice(0, str.lastIndexOf("-"));
24}
25
26function compareFiles(leftFile, rightFile) {
27 var l = prettify(path.basename(path.dirname(leftFile)));

Callers 1

gatherArticlesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected