Skip to content

Commit

Permalink
README.md: improve the usage of isPathValid
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed May 22, 2020
1 parent d5b5b8f commit 890c00f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -310,7 +310,9 @@ ig.ignores('*.PNG') // false

## static `ignore.isPathValid(pathname): boolean` since 5.0.0

Check whether the `pathname` is valid according to the [convention](#1-pathname-should-be-a-pathrelatived-pathname).
Check whether the `pathname` is an valid `path.relative()`d path according to the [convention](#1-pathname-should-be-a-pathrelatived-pathname).

This method is **NOT** used to check if an ignore pattern is valid.

```js
ignore.isPathValid('./foo') // false
Expand Down

0 comments on commit 890c00f

Please sign in to comment.