-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
const intersect = require('glob-intersection')
const violet = '{a/2,a/1}'
const purple = 'a/{1,2}'
const union0 = `{${purple},${violet}}`
console.log(`The intersection ${purple} ∩ ${union0} = ${intersect(purple, union0)} has more
terms than the first operand, but includes the first operand as term literally. This can only be correct
if the extra terms are covered by the first term. The extra terms are thus meaningless.`)
gives as output
The intersection a/{1,2} ∩ {a/{1,2},{a/2,a/1}} = {a/{1,2},a/2,a/1} has more
terms than the first operand, but includes the first operand as term literally. This can only be correct
if the extra terms are covered by the first term. The extra terms are thus meaningless.
a/2,a/1 should not appear in the output
Metadata
Metadata
Assignees
Labels
No labels