-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.
Description
- Version: v5.10.1
- Platform: Darwin Kernel Version 15.3.0
- Subsystem: path
On OS X and Linux its perfectly legal to use dot '.' in directory name.
Currently path.extname and path.parse handle .
in directory name as a file extension.
e.g.
ext.extname('/Users/Bob.Dev')
> '.Dev'
ext.parse('/Users/John.Smith')
> { root: '/',
dir: '/Users',
base: 'Bob.Dev',
ext: '.Dev',
name: 'Bob' }
I understand that path
don't do any validation. But this behavior is confusing an error prone.
moshfeu
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.