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

✨ Add support for disjunctions in regexes #3927

Merged
merged 2 commits into from
May 29, 2023
Merged

Conversation

dubzzz
Copy link
Owner

@dubzzz dubzzz commented May 29, 2023

Supporting regex patterns such as a|b|c is key if we want to release stringMatching at some point. Adding such support is the aim of this PR.

Category:

  • ✨ Introduce new features
  • 📝 Add or update documentation
  • ✅ Add or update tests
  • 🐛 Fix a bug
  • 🏷️ Add or update types
  • ⚡️ Improve performance
  • Other(s): ...

Potential impacts:

  • Generated values
  • Shrink values
  • Performance
  • Typings
  • Other(s): ...

Sorry, something went wrong.

dubzzz added 2 commits May 29, 2023 19:18
Supporting regex patterns such as `a|b|c` is key if we want to release `stringMatching` at some point. Adding such support is the aim of this PR.
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 29, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2f3f46e:

Sandbox Source
Vanilla Configuration

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #3927 (2f3f46e) into main (33534ba) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3927      +/-   ##
==========================================
+ Coverage   94.78%   94.79%   +0.01%     
==========================================
  Files         208      208              
  Lines        5671     5685      +14     
  Branches     1270     1274       +4     
==========================================
+ Hits         5375     5389      +14     
  Misses        279      279              
  Partials       17       17              
Flag Coverage Δ
unit-tests 94.79% <100.00%> (+0.01%) ⬆️
unit-tests-14.x-Linux 94.79% <100.00%> (+0.01%) ⬆️
unit-tests-16.x-Linux 94.79% <100.00%> (+0.01%) ⬆️
unit-tests-18.x-Linux 94.79% <100.00%> (+0.01%) ⬆️
unit-tests-latest-Linux 94.79% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../src/arbitrary/_internals/helpers/TokenizeRegex.ts 93.93% <100.00%> (+0.47%) ⬆️
...ackages/fast-check/src/arbitrary/stringMatching.ts 80.95% <100.00%> (+0.46%) ⬆️

@dubzzz dubzzz merged commit fd490d9 into main May 29, 2023
@dubzzz dubzzz deleted the add-disjunction-of-regex branch May 29, 2023 20:54
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.

None yet

1 participant