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 rendering of max. quantifier in regexes #457

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

mristin
Copy link
Contributor

@mristin mristin commented Mar 22, 2024

There are many different syntaxes for regular expressions. Some of them require the min. quantifier to be explicitly specified as 0 even if only the max. quantifier is given. To comply with such syntaxes, we explicitly render the max. quantifier without a min. quantifier as {0,m}.

There are many different syntaxes for regular expressions. Some of them
require the min. quantifier to be explicitly specified as 0 even if only
the max. quantifier is given. To comply with such syntaxes, we
explicitly render the max. quantifier without a min. quantifier as
`{0,m}`.
@mristin mristin merged commit 976fa6b into main Mar 22, 2024
0 of 3 checks passed
@mristin mristin deleted the mristin/Fix-rendering-of-max-quantifier-in-regexes branch March 22, 2024 20:59
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