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

Method getFileExtension

external/.scrollLibs.js:13991–13994  ·  view source on GitHub ↗
(filepath = "")

Source from the content-addressed store, hash-verified

13989}
13990class Utils {
13991 static getFileExtension(filepath = "") {
13992 const match = filepath.match(/\.([^\.]+)$/)
13993 return (match && match[1]) || ""
13994 }
13995 static ensureFolderEndsInSlash(folder) {
13996 return folder.replace(/\/$/, "") + "/"
13997 }

Callers 1

getAvailablePermalinkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected