Skip to content

Conversation

cmanallen
Copy link
Member

Customers want to allowlist certain package names for their release. For example: foo@*. But this is a filter so actually what happens is this deny lists the package name foo. To allow customers to allow list a package name we need to introduce negated prefix literals. The chosen syntax is (!foo*)*. Where ( ) represents a group. And ! negates the group. The parentheses wrapping was chosen because it mirrors the behavior of character classes with its negated prefix. It also simplifies implementation so negation always works on a literal and is not a generalized operator that can work on any expression.

@cmanallen cmanallen requested a review from a team as a code owner August 7, 2025 16:27
cursor[bot]

This comment was marked as outdated.

@Dav1dde Dav1dde marked this pull request as draft August 13, 2025 10:22
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

Successfully merging this pull request may close these issues.

1 participant