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

Method _getEscapedRows

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

Source from the content-addressed store, hash-verified

17655 return this._rowsToParticle(rows, delimiter, true)
17656 }
17657 static _getEscapedRows(str, delimiter, quoteChar) {
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)

Callers 2

fromDelimitedMethod · 0.95

Calls 3

_strToRowsMethod · 0.95
mapMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected