MCPcopy
hub / github.com/tailwindlabs/tailwindcss / parse

Function parse

packages/tailwindcss/src/css-parser.test.ts:7–9  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

5
6describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
7 function parse(string: string) {
8 return CSS.parse(string.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'))
9 }
10
11 function parseWithLoc(string: string) {
12 return CSS.parse(string.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'), {

Callers 1

css-parser.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected