MCPcopy Create free account
hub / github.com/breck7/scroll / removeFileExtension

Method removeFileExtension

external/.scrollLibs.js:14178–14180  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

14176 }
14177 // Removes last ".*" from this string
14178 static removeFileExtension(filename) {
14179 return filename ? filename.replace(/\.[^\.]+$/, "") : ""
14180 }
14181 static getFileName(path) {
14182 const normalizedPath = path.replace(/\\/g, "/")
14183 const parts = normalizedPath.split("/")

Callers 2

getAvailablePermalinkMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected