Skip to content

or does not meet expectations? #480

@eevho

Description

@eevho

🐛 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions