| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #61269 +/- ##
==========================================
+ Coverage 90.12% 90.15% +0.02%
==========================================
Files 743 743
Lines 242324 242368 +44
Branches 45629 45635 +6
==========================================
+ Hits 218396 218501 +105
+ Misses 15440 15359 -81
- Partials 8488 8508 +20
... and 25 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
Hey, no interest? @nodejs/path |
Sorry, something went wrong.
|
@nodejs/path @nodejs/fs |
Sorry, something went wrong.
|
I am wondering, why not just expose minimatch? It's already vendored, right? |
Sorry, something went wrong.
|
Vendoring is an implem detail, not a commitment and I'd prefer to not couple the Node's API to a third-party dependency. Goal here is to provide stable, cross-platform glob semantic in Node rather than exposing raw minimatch behavior. windowsPathsNoEscape and magicalBraces are good illustrations of this. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Hey, is there something blocking this PR? |
Sorry, something went wrong.
|
The test cases don't include patterns containing parentheses ( and ). Is this intentional? |
Sorry, something went wrong.
|
No, I'll add some |
Sorry, something went wrong.
Expose minimatch escaping and unescaping capabilities on path module. Fixes: nodejs#61258 Signed-off-by: Xavier Stouder <xavier@stouder.io>
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/72403/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/30165172379 |
Sorry, something went wrong.
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/72403/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/30182123250 |
Sorry, something went wrong.
|
This needs a rebase to resolve conflicts in test/parallel/test-path-glob.js |
Sorry, something went wrong.
|
Should this be reconsidered around #65392? @avivkeller |
Sorry, something went wrong.
|
If needed, since we won't have an escape function, this PR can be updated to vendor it's own escaping implementation, it's quite simple, it's just stringToEscape.replace(/[?*()[\]{}]/g, '[$&]') |
Sorry, something went wrong.
nice, that's more or less what #61258 gave as an example plus closing symbols. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
path: add escapeGlob and unescapeGlob
Expose minimatch escaping and unescaping capabilities on path module.
Fixes: #61258
This is an implem proposal fix #61258 using minimatch that is already-vendored. Also feel free to -1 the change if you think it doesn't have its place there.