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

Quantify boundary should error or match empty #2

Open
didavid61202 opened this issue Apr 15, 2023 · 0 comments
Open

Quantify boundary should error or match empty #2

didavid61202 opened this issue Apr 15, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@didavid61202
Copy link
Owner

Issue

any quantifier following single \b (boundary pattern) should show syntax error Nothing to repeat

ParseRegExp<'\\b+'> // should show syntax error
// or
ParseRegExp<'\\b*'>  // should show syntax error

but (\b)? should match empty stirng

MatchRegExp<'123', ParseRegExp<'(\\b)+'>, never> // MatchResult<[''], '123', never>
@didavid61202 didavid61202 self-assigned this Apr 15, 2023
@didavid61202 didavid61202 added bug Something isn't working good first issue Good for newcomers labels Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant