fix(matcher): finalize param token before processing escaped colon#2654
Conversation
✅ Deploy Preview for vue-router canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughConfines backslash escape handling to the Static tokenizer state so escapes following parameters are treated as literal static text; adds tests verifying escaped characters (notably Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2654 +/- ##
==========================================
+ Coverage 85.66% 85.92% +0.26%
==========================================
Files 86 88 +2
Lines 10007 10076 +69
Branches 2289 2315 +26
==========================================
+ Hits 8572 8658 +86
+ Misses 1422 1407 -15
+ Partials 13 11 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The pre-switch block had grown three distinct behaviors depending on state (ignore in ParamRegExp, finalize-then-escape in Param/ParamRegExpEnd, plain escape in Static). Moving the transition into the Static case lets Param and ParamRegExpEnd reuse their existing consume-and-step-back logic — \\ simply falls through, finalizes the param, and gets reprocessed in Static.
fixes #2517
Summary by CodeRabbit
Bug Fixes
Tests