MCPcopy Create free account
hub / github.com/adobe/react-spectrum / readValue

Function readValue

packages/@react-spectrum/s2/style/runtime.ts:110–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 function readValue() {
111 if (s[i] === '-') {
112 // the beginning and end of arbitrary values are marked with -
113 while (i < s.length && s[i] !== ' ') {
114 i++;
115 if (s[i] === '-') {
116 i++;
117 break;
118 }
119 }
120 } else {
121 while (i < s.length) {
122 if (s[i] === '_') {
123 i++;
124 } else {
125 i++;
126 break;
127 }
128 }
129 }
130 }
131
132 return properties;
133}

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected