Skip to content

output is not minimized or normalized #6

@jandockx

Description

@jandockx
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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions