diff options
author | Maxime Quandalle <maxime.quandalle@gmail.com> | 2014-02-01 16:10:25 +0100 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-03 12:38:40 +0400 |
commit | 154d9d2163987f8f9c1be5fdc9d2a8cb3b2134a6 (patch) | |
tree | e6952816465c4f23877aa961221f12a50d4a81a0 | |
parent | 643a7d8c1605b61facc570a6f8b8b0ed0cf89eb7 (diff) | |
download | node-154d9d2163987f8f9c1be5fdc9d2a8cb3b2134a6.tar.gz |
doc: add an example about multiple extensions
`path.extname` returns only the last extension
-rw-r--r-- | doc/api/path.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/path.markdown b/doc/api/path.markdown index fe59134d4..e01fa8b22 100644 --- 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 '.' |