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

Converting empty List to regex #60

Open
dloscutoff opened this issue Aug 9, 2022 · 0 comments
Open

Converting empty List to regex #60

dloscutoff opened this issue Aug 9, 2022 · 0 comments
Labels
minor-bug Not ideal behavior, but doesn't break anything.
Milestone

Comments

@dloscutoff
Copy link
Owner

dloscutoff commented Aug 9, 2022

Currently, X[] gives `(?:)`, which matches the empty string. However, since X with a List argument is supposed to generate a regex that matches any of the elements of the list, would it make more sense for X[] to generate a regex that doesn't match anything? One example where it would make a difference is XlNa, which counts the number of regex matches for elements of l in a. If l is empty, it would seem that the answer should be 0, but currently the result is equal to #a+1.

@dloscutoff dloscutoff added the minor-bug Not ideal behavior, but doesn't break anything. label Aug 9, 2022
@dloscutoff dloscutoff added this to the v1.3 milestone Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-bug Not ideal behavior, but doesn't break anything.
Projects
None yet
Development

No branches or pull requests

1 participant