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

Fix join of enum with string #28

Merged
merged 2 commits into from
Jun 16, 2024

Conversation

kmichel-aiven
Copy link
Contributor

The join of a string restricted by a pattern with an unrestricted string is the unrestricted string, because it contains every possible string.

@kmichel-aiven kmichel-aiven marked this pull request as draft June 5, 2024 13:42
@kmichel-aiven kmichel-aiven marked this pull request as ready for review June 5, 2024 21:14
@kmichel-aiven kmichel-aiven force-pushed the kmichel-fix-join-enum-string branch from c61b1ae to c4e75d2 Compare June 14, 2024 07:42
@kmichel-aiven
Copy link
Contributor Author

The tests are flaky because of non-repeatable canonicalization: #29

I'll also make a PR to fix the underlying bug when escaping regexp in a way that greenery doesn't like.

@shinnar
Copy link
Member

shinnar commented Jun 16, 2024

when you get a chance, could you please rebase this against the latest?

The join of a string restricted by a pattern with an unrestricted string
is the unrestricted string, because it contains every possible string.
If s2 is a regex and s1 is empty or None, then s1 is equivalent to
all the  strings, but s2 can also be a regex equivalent to all the
strings (for instance `.*|[abc]`).

In that case, the two regex are equivalent and subsets of each other.
@kmichel-aiven kmichel-aiven force-pushed the kmichel-fix-join-enum-string branch from c4e75d2 to 2b4105a Compare June 16, 2024 06:33
@shinnar shinnar merged commit 8c85130 into IBM:master Jun 16, 2024
5 of 6 checks passed
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.

2 participants