| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:bf78d2d5-e9ea-cad2-e0a8-29a937ff294e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE6C:1EB0:115CC4D:191C792:6A4E4C03 |
| html-safe-nonce | 856555ce1037ad9592a14ef5b37de2a08927cf96c41ff0473cf0b0a221521860 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTZDOjFFQjA6MTE1Q0M0RDoxOTFDNzkyOjZBNEU0QzAzIiwidmlzaXRvcl9pZCI6IjUxMDgzOTcxMzY4NjIzOTk0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d6661290818fa1f05085cbfcc3837b7e68a4355623f93dad049b06a7616cc75 |
| hovercard-subject-tag | pull_request:3429759024 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/62378/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/35112e3dedc04dfcb8e9960c4aba5cf0ef060bbad586b81faba4124cd41d5dca/nodejs/node/pull/62378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35112e3dedc04dfcb8e9960c4aba5cf0ef060bbad586b81faba4124cd41d5dca/nodejs/node/pull/62378 |
| og:image:alt | Fixes: #21358
Summary
path.basename() produced inconsistent results when stripping a suffix from paths with trailing slashes or leading path components. For example:
path.posix.basename('a'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | murataslan1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-cache |
| 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 | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/nodejs/node/pull/62378#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F62378 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F62378 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode |
| Reload | https://github.com/nodejs/node/pull/62378 |
| Reload | https://github.com/nodejs/node/pull/62378 |
| Reload | https://github.com/nodejs/node/pull/62378 |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
|
nodejs
| https://github.com/nodejs |
| node | https://github.com/nodejs/node |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
|
Notifications
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Fork
36k
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Star
118k
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Code
| https://github.com/nodejs/node |
|
Issues
1.3k
| https://github.com/nodejs/node/issues |
|
Pull requests
965
| https://github.com/nodejs/node/pulls |
|
Actions
| https://github.com/nodejs/node/actions |
|
Projects
| https://github.com/nodejs/node/projects |
|
Security and quality
0
| https://github.com/nodejs/node/security |
|
Insights
| https://github.com/nodejs/node/pulse |
|
Code
| https://github.com/nodejs/node |
|
Issues
| https://github.com/nodejs/node/issues |
|
Pull requests
| https://github.com/nodejs/node/pulls |
|
Actions
| https://github.com/nodejs/node/actions |
|
Projects
| https://github.com/nodejs/node/projects |
|
Security and quality
| https://github.com/nodejs/node/security |
|
Insights
| https://github.com/nodejs/node/pulse |
| murataslan1 | https://github.com/murataslan1 |
| nodejs:main | https://github.com/nodejs/node/tree/main |
| murataslan1:fix/path-basename-ext-inconsistency | https://github.com/murataslan1/node/tree/fix/path-basename-ext-inconsistency |
| Conversation | https://github.com/nodejs/node/pull/62378 |
| Commits2 (2) | https://github.com/nodejs/node/pull/62378/commits |
| Checks | https://github.com/nodejs/node/pull/62378/checks |
| Files changed | https://github.com/nodejs/node/pull/62378/files |
| path: fix inconsistent basename suffix stripping with trailing slashes | https://github.com/nodejs/node/pull/62378#top |
| murataslan1 | https://github.com/murataslan1 |
| nodejs:main | https://github.com/nodejs/node/tree/main |
| murataslan1:fix/path-basename-ext-inconsistency | https://github.com/murataslan1/node/tree/fix/path-basename-ext-inconsistency |
|
| https://github.com/murataslan1 |
| murataslan1 | https://github.com/murataslan1 |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#issue-4114226207 |
| #21358 | https://github.com/nodejs/node/issues/21358 |
| #5123 | https://github.com/nodejs/node/pull/5123 |
| #5123 | https://github.com/nodejs/node/pull/5123 |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| murataslan1 | https://github.com/murataslan1 |
| March 22, 2026 02:33 | https://github.com/nodejs/node/pull/62378#commits-pushed-e1746a9 |
|
| https://github.com/murataslan1 |
| test_runner: avoid reading process state directly in run() | https://github.com/nodejs/node/pull/62378/commits/e1746a9e19f5c02d6d40ddad5e290a9c4e2950cb |
| e1746a9 | https://github.com/nodejs/node/pull/62378/commits/e1746a9e19f5c02d6d40ddad5e290a9c4e2950cb |
| nodejs#53867 | https://github.com/nodejs/node/issues/53867 |
|
| https://github.com/murataslan1 |
| path: fix inconsistent basename suffix stripping with trailing slashes | https://github.com/nodejs/node/pull/62378/commits/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
| 4f0bff1 | https://github.com/nodejs/node/pull/62378/commits/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
| nodejs#5123 | https://github.com/nodejs/node/pull/5123 |
| nodejs#21358 | https://github.com/nodejs/node/issues/21358 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| March 21, 2026 23:51 | https://github.com/nodejs/node/pull/62378#event-23784681370 |
| https://github.com/nodejs-github-bot |
| nodejs-github-bot | https://github.com/nodejs-github-bot |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#issuecomment-4104924519 |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| https://github.com/murataslan1 |
| murataslan1 | https://github.com/murataslan1 |
|
Mar 21, 2026
| https://github.com/nodejs/node/pull/62378#ref-issue-332901634 |
|
Inconsistent behavior of path.basename(path, ext)
#21358
| https://github.com/nodejs/node/issues/21358 |
| https://github.com/nodejs-github-bot |
| nodejs-github-bot | https://github.com/nodejs-github-bot |
|
needs-ci
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci |
|
path
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Apath |
|
test_runner
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Atest_runner |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#event-23784684209 |
| started reviewing | https://github.com/nodejs/node/sessions/e7642983-a7c6-4cc0-b69d-b221bad6f77a |
| murataslan1 | https://github.com/murataslan1 |
| March 21, 2026 23:52 | https://github.com/nodejs/node/pull/62378#event-23784692281 |
|
View session
| https://github.com/nodejs/node/sessions/e7642983-a7c6-4cc0-b69d-b221bad6f77a |
| https://github.com/avivkeller |
| avivkeller | https://github.com/avivkeller |
|
semver-major
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Asemver-major |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#event-23784717115 |
| https://github.com/avivkeller |
| avivkeller | https://github.com/avivkeller |
|
Mar 21, 2026
| https://github.com/nodejs/node/pull/62378#pullrequestreview-3987170406 |
|
View reviewed changes
| https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
| test/parallel/test-path-basename.js | https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce#diff-fc8d28db9b74a1963fa916604a0f23072f31862d460aa92bf832beedb3c35fc8 |
| avivkeller | https://github.com/avivkeller |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2970566686 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| atlowChemi | https://github.com/atlowChemi |
| Mar 22, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2971173714 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| murataslan1 | https://github.com/murataslan1 |
| Mar 22, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2971228807 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @ChALkeR | https://github.com/ChALkeR |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Mar 21, 2026
| https://github.com/nodejs/node/pull/62378#pullrequestreview-3987172200 |
|
View reviewed changes
| https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/nodejs/node/pull/62378#pullrequestreview-3987172200 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #21358 | https://github.com/nodejs/node/issues/21358 |
| Add Copilot custom instructions | https://github.com/nodejs/node/new/main?filename=.github/instructions/*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| lib/internal/test_runner/runner.js | https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce#diff-840cee72cdda14be90e6c5607ffa844eaf73be966607ddc834cc667bd142fb21 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2970568480 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| lib/internal/test_runner/runner.js | https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce#diff-840cee72cdda14be90e6c5607ffa844eaf73be966607ddc834cc667bd142fb21 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2970568492 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| lib/internal/main/test_runner.js | https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce#diff-1a8f92c415a79f46491ffbb54474b19b628bf4e4754187ada3dfd4cf48b973ef |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| Mar 21, 2026 | https://github.com/nodejs/node/pull/62378#discussion_r2970568497 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| https://github.com/murataslan1 |
| murataslan1 | https://github.com/murataslan1 |
| Mar 22, 2026 | https://github.com/nodejs/node/pull/62378#issuecomment-4105768330 |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
| https://github.com/murataslan1 |
| murataslan1 | https://github.com/murataslan1 |
| Mar 22, 2026 | https://github.com/nodejs/node/pull/62378#event-23788915166 |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F62378 |
|
| https://github.com/atlowChemi |
|
atlowChemi
| https://github.com/atlowChemi |
|
| https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
|
| https://github.com/avivkeller |
|
avivkeller
| https://github.com/avivkeller |
|
| https://github.com/nodejs/node/pull/62378/files/4f0bff1362330ccb29f3dc0cdbb1ff24741981ce |
|
needs-ci
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci |
|
path
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Apath |
|
semver-major
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Asemver-major |
|
test_runner
| https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Atest_runner |
|
Inconsistent behavior of path.basename(path, ext)
| https://github.com/nodejs/node/issues/21358 |
| Please reload this page | https://github.com/nodejs/node/pull/62378 |
|
| https://github.com/murataslan1 |
|
| https://github.com/nodejs-github-bot |
|
| https://github.com/avivkeller |
|
| https://github.com/atlowChemi |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |