Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: update path.extname documentation
per: nodejs/node-v0.x-archive#8509 originally submitted by @thauburger Adding an additional example to path.extname documentation to demonstrate the case where the first character of the last path component is '.'. This case is interesting, as something like path.extname('.txt') returns an empty string. In this case, .txt can be used as a valid file name (while arguably maintaining an extension). I agree with Node's behavior in this case, but I think the added example provides additional clarity for the developer. Reviewed By: Sakthipriyan Vairamani <[email protected]> PR-URL: #2378
- Loading branch information