UEA-PRODEM
This commit is contained in:
+9
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user