doc: add an example about multiple extensions

`path.extname` returns only the last extension