MCPcopy
hub / github.com/webpack/webpack / consumeExtraNewline

Function consumeExtraNewline

lib/css/syntax.js:279–284  ·  view source on GitHub ↗
(cc, input, pos)

Source from the content-addressed store, hash-verified

277 * @returns {number} position past the CRLF pair (or unchanged for bare CR)
278 */
279const consumeExtraNewline = (cc, input, pos) => {
280 if (cc === CC_CARRIAGE_RETURN && input.charCodeAt(pos) === CC_LINE_FEED) {
281 pos++;
282 }
283 return pos;
284};
285
286/**
287 * @param {number} cc char code

Callers 2

consumeAStringTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected