Merge pull request #1876 from nickclark2016/issues/1868

Escape group names when creating rules
This commit is contained in:
Samuel Surtees 2022-05-11 23:03:20 +10:00 committed by GitHub
commit 6b8cabad16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@
local tr = p.workspace.grouptree(wks)
tree.traverse(tr, {
onbranch = function(n)
table.insert(groups, n.path)
table.insert(groups, p.esc(n.path))
end
})
@ -146,7 +146,7 @@
local tr = p.workspace.grouptree(wks)
tree.traverse(tr, {
onbranch = function(n)
local rule = n.path .. ":"
local rule = p.esc(n.path) .. ":"
local projectTargets = {}
local groupTargets = {}
for i, c in pairs(n.children)