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

Method removeEmptyLines

external/.scrollLibs.js:14018–14020  ·  view source on GitHub ↗
(str = "")

Source from the content-addressed store, hash-verified

14016 return url.startsWith("https://") || url.startsWith("http://")
14017 }
14018 static removeEmptyLines(str = "") {
14019 return str.replace(/\n\n+/g, "\n")
14020 }
14021 static shiftRight(str = "", numSpaces = 1) {
14022 let spaces = " ".repeat(numSpaces)
14023 return str.replace(/\n/g, `\n${spaces}`)

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected