Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output is not minimized or normalized #6

Open
jandockx opened this issue Dec 7, 2017 · 0 comments
Open

output is not minimized or normalized #6

jandockx opened this issue Dec 7, 2017 · 0 comments

Comments

@jandockx
Copy link

jandockx commented Dec 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant