Repository navigation
fix(vite): reset stateful regex cursors in compile filters - #19541
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Walkthrough过滤器现在会在测试排除和包含正则匹配器前重置 Changes过滤器正则状态
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19541 +/- ##
==========================================
+ Coverage 54.26% 55.82% +1.55%
==========================================
Files 258 467 +209
Lines 12322 25662 +13340
Branches 2942 6384 +3442
==========================================
+ Hits 6687 14326 +7639
- Misses 4656 9372 +4716
- Partials 979 1964 +985
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
aabb3e4 to
730da9e
Compare
这个 PR 做了什么?
Reset RegExp
lastIndexbefore matching Vite compile include/exclude rules. A global or sticky regex previously retained its cursor, so matching the same path repeatedly could alternate between included and excluded.Adds tests for global/sticky matchers, existing cursors, exclusion precedence, compile options, string globs and Windows paths. The change is limited to resetting RegExp matchers before each test.
这个 PR 是什么类型?
这个 PR 涉及以下平台:
验证
Closes #19540
Summary by CodeRabbit