Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

or does not meet expectations? #480

Open
yveeven opened this issue Jan 20, 2025 · 1 comment
Open

or does not meet expectations? #480

yveeven opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@yveeven
Copy link

yveeven commented Jan 20, 2025

🐛 The bug

exactly('18').or('19', '20'): (?:18|1920)
exactly('18').or('19').or('20'): (?:(?:18|19)|20)

I want to know if this is the design, but I understand that the variable argument of or is more reasonable if it should conform to the target expression?

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-ghwabpwy?file=app.vue

🌈 Expected behaviour

Target expression: (?:18 | 19 | 20)

ℹ️ Additional context

No response

@yveeven yveeven added the bug Something isn't working label Jan 20, 2025
@maige-app maige-app bot added the question Further information is requested label Jan 20, 2025
Copy link
Member

That's a nice idea, I think supporting an array of args should be the second option.

@danielroe danielroe added good first issue Good for newcomers and removed question Further information is requested labels Jan 21, 2025 — with Volta.net
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants