Title: path: matchesGlob() cache does not distinguish path platforms · Issue #64570 · nodejs/node · GitHub
Open Graph Title: path: matchesGlob() cache does not distinguish path platforms · Issue #64570 · nodejs/node
X Title: path: matchesGlob() cache does not distinguish path platforms · Issue #64570 · nodejs/node
Description: Version latest main branch Platform 7.1.3-arch1-3 Subsystem path What steps will reproduce the bug? const path = require('node:path'); const pattern = 'cache-platform-regression/**'; console.log( path.posix.matchesGlob('cache-platform-re...
Open Graph Description: Version latest main branch Platform 7.1.3-arch1-3 Subsystem path What steps will reproduce the bug? const path = require('node:path'); const pattern = 'cache-platform-regression/**'; console.log( p...
X Description: Version latest main branch Platform 7.1.3-arch1-3 Subsystem path What steps will reproduce the bug? const path = require('node:path'); const pattern = 'cache-platform-regression/**'...
Opengraph URL: https://github.com/nodejs/node/issues/64570
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"path: matchesGlob() cache does not distinguish path platforms","articleBody":"### Version\n\nlatest main branch\n\n### Platform\n\n```text\n7.1.3-arch1-3\n```\n\n### Subsystem\n\npath\n\n### What steps will reproduce the bug?\n\n```js\n const path = require('node:path');\n\n const pattern = 'cache-platform-regression/**';\n\n console.log(\n path.posix.matchesGlob('cache-platform-regression/file', pattern),\n );\n\n console.log(\n path.win32.matchesGlob('cache-platform-regression\\\\file', pattern),\n );\n\n```\n\n### How often does it reproduce? Is there a required condition?\n\nNo\n\n### What is the expected behavior? Why is that the expected behavior?\n\nBoth calls should return true. The result of path.win32.matchesGlob() should not depend on whether the same pattern was previously used through path.posix.matchesGlob().\n\n### What do you see instead?\n\n```\n true\n false\n```\n\n The Win32 call returns false after the same pattern has first been used through path.posix.\n\n Calling the Win32 version with a previously unused pattern returns the expected result:\n\n```js\n console.log(\n path.win32.matchesGlob(\n 'cache-platform-control\\\\file',\n 'cache-platform-control/**',\n ),\n );\n // true\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/Archkon","@type":"Person","name":"Archkon"},"datePublished":"2026-07-18T07:23:56Z","url":"https://github.com/nodejs/node/issues/64570"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:644ef486-c38b-f90c-83c9-1cae4d0b47ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A806:242B39:65120C:896873:6AED2674 |
| html-safe-nonce | 781da20b32772426ed52801116ad46e3a6f2d8bcbd685ab49ec0bcdb23a32096 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA2OjI0MkIzOTo2NTEyMEM6ODk2ODczOjZBRUQyNjc0IiwidmlzaXRvcl9pZCI6IjM4NTk0MzEwNjY3ODY2NzAxOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 902edf1c2bf8b63f3137bf38ede5ed02d63453fb449785cd42096c81a8a4a04f |
| hovercard-subject-tag | issue:4917276769 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64570/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ad7c7cb7fd28ccad1713c12ea2b425ee9a620605bd0f7df34c757a3fac36922/nodejs/node/issues/64570 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ad7c7cb7fd28ccad1713c12ea2b425ee9a620605bd0f7df34c757a3fac36922/nodejs/node/issues/64570 |
| og:image:alt | Version latest main branch Platform 7.1.3-arch1-3 Subsystem path What steps will reproduce the bug? const path = require('node:path'); const pattern = 'cache-platform-regression/**'; console.log( p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Archkon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width