MCPcopy Create free account
hub / github.com/Inist-CNRS/node-csv-string / Value

Method Value

src/Parser.ts:102–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 private Value(): Value {
103 const residue = this.Residue();
104 const quotedvalue = this.QuotedValue();
105 if (quotedvalue) {
106 const value = quotedvalue
107 .slice(1, -1)
108 .replace(this._replaceQuoteRegExp, this.quote);
109 this.Residue();
110 return value;
111 }
112 const simplevalue = this.SimpleValue();
113 if (simplevalue) {
114 return residue ? residue + simplevalue : simplevalue;
115 }
116 return '';
117 }
118
119 private Comma(): Comma | undefined {
120 if (

Callers 1

RowMethod · 0.95

Calls 3

ResidueMethod · 0.95
QuotedValueMethod · 0.95
SimpleValueMethod · 0.95

Tested by

no test coverage detected