✨ Support negated unicode properties in stringMatching#6871
Conversation
🦋 Changeset detectedLatest commit: e394abe The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
👋 It looks like the PR template was not used for this pull request. Please edit the PR description to use the template, or close this PR and open a new one that uses it. The template includes:
Thank you for your contribution! 🙏 |
|
@claude use pr template |
|
Claude finished @dubzzz's task in 1m 14s —— View job Updated PR to use template
Updated the PR description to follow the repository's PR template from |
stringMatching
@fast-check/ava
fast-check
@fast-check/jest
@fast-check/packaged
@fast-check/poisoning
@fast-check/vitest
@fast-check/worker
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6871 +/- ##
==========================================
+ Coverage 94.73% 94.75% +0.01%
==========================================
Files 211 211
Lines 5778 5778
Branches 1526 1527 +1
==========================================
+ Hits 5474 5475 +1
+ Misses 296 295 -1
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Add support for negated unicode properties (e.g.,
\P{Emoji}) in thestringMatchingarbitrary, complementing the existing support for positive unicode properties (e.g.,\p{Emoji}) added in #6870.Changes:
extractRangesForPropertyto accept anegativeparameter and generate the appropriate regex pattern (\Pfor negated,\pfor positive)extractRangesForPropertyOrFromCacheto include the negation flag in the cache key, ensuring negated and positive properties are cached separatelyunicodePropertyArbitraryChecklist
— Don't delete this checklist and make sure you do the following before opening the PR
pnpm run bumpor by following the instructions from the changeset bot🐛(vitest) Something...) when the change targets a package other thanfast-check