Trying to match
react
react/react-shoes
react-shoes
but not
@testing-library/react
@banana/react
Pattern react matches first and last 2:
console.log(
minimatch.match(
[
'react',
'react/react-shoes',
'react-shoes',
'@testing-library/react',
'@banana/react',
],
'react',
{ matchBase: true }
)
);
prints out
[ 'react', '@testing-library/react', '@banana/react' ]
Pattern react* matches ALL the strings.
Things like react[!@] match nothing :(
Am a bit stuck
Trying to match
but not
Pattern
reactmatches first and last 2:prints out
Pattern
react*matches ALL the strings.Things like
react[!@]match nothing :(Am a bit stuck