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

Method fromDelimitedNoHeaders

external/.scrollLibs.js:17660–17664  ·  view source on GitHub ↗
(str, delimiter, quoteChar)

Source from the content-addressed store, hash-verified

17658 return str.includes(quoteChar) ? this._strToRows(str, delimiter, quoteChar) : str.split("\n").map(line => line.split(delimiter))
17659 }
17660 static fromDelimitedNoHeaders(str, delimiter, quoteChar) {
17661 str = str.replace(/\r/g, "") // remove windows newlines if present
17662 const rows = this._getEscapedRows(str, delimiter, quoteChar)
17663 return this._rowsToParticle(rows, delimiter, false)
17664 }
17665 static _strToRows(str, delimiter, quoteChar, newLineChar = "\n") {
17666 const rows = [[]]
17667 const newLine = "\n"

Callers

nothing calls this directly

Calls 3

_getEscapedRowsMethod · 0.95
_rowsToParticleMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected