MCPcopy
hub / github.com/webpack/webpack / isContainerKeyword

Function isContainerKeyword

lib/css/CssParser.js:535–546  ·  view source on GitHub ↗
(input, start, end)

Source from the content-addressed store, hash-verified

533 * @returns {boolean} true for a container keyword
534 */
535const isContainerKeyword = (input, start, end) => {
536 switch (end - start) {
537 case 2:
538 return input.startsWith("or", start);
539 case 3:
540 return input.startsWith("and", start) || input.startsWith("not", start);
541 case 4:
542 return input.startsWith("none", start);
543 default:
544 return false;
545 }
546};
547
548/**
549 * @param {string} input source

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected