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

Function _getIndentCount

external/.scrollLibs.js:15128–15135  ·  view source on GitHub ↗
(str, edgeSymbol)

Source from the content-addressed store, hash-verified

15126 return str.split(regex)
15127}
15128function _getIndentCount(str, edgeSymbol) {
15129 let level = 0
15130 const edgeChar = edgeSymbol
15131 while (str[level] === edgeChar) {
15132 level++
15133 }
15134 return level
15135}
15136class ChildAddedParticleEvent extends AbstractParticleEvent {}
15137class ChildRemovedParticleEvent extends AbstractParticleEvent {}
15138class DescendantChangedParticleEvent extends AbstractParticleEvent {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected