projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643a7d8
)
doc: add an example about multiple extensions
author
Maxime Quandalle
<maxime.quandalle@gmail.com>
Sat, 1 Feb 2014 15:10:25 +0000
(16:10 +0100)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Mon, 3 Feb 2014 08:38:40 +0000
(12:38 +0400)
`path.extname` returns only the last extension
doc/api/path.markdown
patch
|
blob
|
history
diff --git
a/doc/api/path.markdown
b/doc/api/path.markdown
index
fe59134
..
e01fa8b
100644
(file)
--- a/
doc/api/path.markdown
+++ b/
doc/api/path.markdown
@@
-133,6
+133,10
@@
an empty string. Examples:
// returns
'.html'
+ path.extname('index.coffee.md')
+ // returns
+ '.md'
+
path.extname('index.')
// returns
'.'