Simplify match patterns by blakeembrey · Pull Request #426 · pillarjs/path-to-regexp (original) (raw)

Conversation

@blakeembrey

Opening for posterity/interest, but unlikely to land due to the breaking change from the first parameter to the last being greedy. It is a much simpler solution to handle backtracking protection though, as you just always restrict forward until you hit a wildcard, then restrict backward.

@blakeembrey

@codecov

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.75%. Comparing base (34cb451) to head (51b1abd).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files

@@ Coverage Diff @@ ## master #426 +/- ##

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

1 participant

@blakeembrey