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

feat(core): extglob to standard glob parser #20089

Conversation

Cammisuli
Copy link
Member

@Cammisuli Cammisuli commented Nov 7, 2023

Current Behavior

Current native glob implementation has a naive approach to handle extglobs. Where it only handles negated groups (!()) using regex

Expected Behavior

The extglob is now parsed and we are able to handle @(), !(), ?(), +(), *() patterns. Although, there are still some limitations:

  • *(a|b|c) && ?(a|b|c) behave the same
  • +(a|b|c) && @(a|b|c) behave the same

Related Issue(s)

Fixes #

@Cammisuli Cammisuli requested review from a team, FrozenPandaz and vsavkin as code owners November 7, 2023 12:38
Copy link

vercel bot commented Nov 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 3:38pm

@Cammisuli Cammisuli force-pushed the feature/nxc-116-extglob-to-standard-glob-parser branch 2 times, most recently from d6bb317 to 2704ead Compare November 7, 2023 14:16
@Cammisuli Cammisuli force-pushed the feature/nxc-116-extglob-to-standard-glob-parser branch from 2704ead to e0a448a Compare November 7, 2023 15:38
@FrozenPandaz FrozenPandaz merged commit dc7c3db into nrwl:master Nov 10, 2023
2 checks passed
@Cammisuli Cammisuli deleted the feature/nxc-116-extglob-to-standard-glob-parser branch November 13, 2023 15:52
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants