MCPcopy
hub / github.com/withastro/astro / match

Function match

packages/integrations/markdoc/src/html/css/parse-inline-styles.ts:142–149  ·  view source on GitHub ↗

* Match `re` and return captures. * * @param {RegExp} re * @return {undefined|Array}

(re)

Source from the content-addressed store, hash-verified

140 * @return {undefined|Array}
141 */
142 function match(re) {
143 const m = re.exec(style);
144 if (!m) return;
145 const str = m[0];
146 updatePosition(str);
147 style = style.slice(str.length);
148 return m;
149 }
150
151 /**
152 * Parse whitespace.

Callers 2

whitespaceFunction · 0.70
declarationFunction · 0.70

Calls 1

updatePositionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…