You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
Note ext.pathname should read the last. character, but if I write
and if I write
path.extname('../')
it outputs:
'./'
also, path.extname should return an empty string if the first character is ., but if I write
path.extname('..');
it outputs:
'.'
it seems that path.extname does not work correctly when there are continous sequence of . character
I'm using node v0.6.7 for Windows and here is the exact test case:
in (http://nodejs.org/docs/latest/api/path.html#path.extname)[API document] the description of path.extname is as below:
Note
ext.pathnameshould read the last.character, but if I writeand if I write
it outputs:
also,
path.extnameshould return an empty string if the first character is., but if I writeit outputs:
it seems that
path.extnamedoes not work correctly when there are continous sequence of.characterI'm using node v0.6.7 for Windows and here is the exact test case: