Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yucho committed Jul 23, 2019
1 parent ec7baed commit afa9c97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion readme.md
Expand Up @@ -227,7 +227,15 @@ As in all upath functions, it be `.ext` or `ext`.
✓ `'removedExt.js'` ---> `'removedExt'`
✓ `'removedExt.txt.js'` ---> `'removedExt.txt'`
✓ `'notRemoved.txt'` ---> `'notRemoved.txt'`

It does not care about the length of exts.

`upath.removeExt(filename, '.longExt')` --returns-->

✓ `'removedExt.longExt'` ---> `'removedExt'`
✓ `'removedExt.txt.longExt'` ---> `'removedExt.txt'`
✓ `'notRemoved.txt'` ---> `'notRemoved.txt'`


#### `upath.changeExt(filename, [ext], [ignoreExts], [maxSize=7])`

Expand Down

0 comments on commit afa9c97

Please sign in to comment.