UEA-PRODEM

This commit is contained in:
2026-06-10 12:14:46 -03:00
parent f54126b9d8
commit 9947565694
5319 changed files with 148520 additions and 129332 deletions
+9 -5
View File
@@ -135,13 +135,14 @@ exports.prefixTrackValue = prefixTrackValue
function prefixTrackValue({ gap, value }) {
let result = parser(value).nodes.reduce((nodes, node) => {
if (node.type === 'function' && node.value === 'repeat') {
return nodes.concat({
nodes.push({
type: 'word',
value: transformRepeat(node, { gap })
})
return nodes
}
if (gap && node.type === 'space') {
return nodes.concat(
nodes.push(
{
type: 'space',
value: ' '
@@ -152,8 +153,10 @@ function prefixTrackValue({ gap, value }) {
},
node
)
return nodes
}
return nodes.concat(node)
nodes.push(node)
return nodes
}, [])
return parser.stringify(result)
@@ -161,7 +164,7 @@ function prefixTrackValue({ gap, value }) {
// Parse grid-template-areas
let DOTS = /^\.+$/
const DOTS = /^\.+$/
function track(start, end) {
return { end, span: end - start, start }
@@ -1046,7 +1049,8 @@ function normalizeRowColumn(str) {
if (node.type === 'space') {
return result
}
return result.concat(parser.stringify(node))
result.push(parser.stringify(node))
return result
}, [])
return normalized