Skip to content

Commit 950d665

Browse files
committed
#75: README.md: improves explanation of options.allowRelativePaths
1 parent 052a722 commit 950d665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ Which is alternative to `options.ignoreCase`
330330

331331
### `options.allowRelativePaths?: boolean` since 5.2.0
332332

333-
This option brings backward compatibility with projects which based on `[email protected]`
333+
This option brings backward compatibility with projects which based on `[email protected]`. If `options.allowRelativePaths` is `true`, `ignore` will not check whether the given path to be tested is [`path.relative()`d](#pathname-conventions).
334334

335-
However, passing a relative path to test if it is ignored or not is not a good practise, which might lead to unexpected behavior
335+
However, passing a relative path, such as `'./foo'` or `'../foo'`, to test if it is ignored or not is not a good practise, which might lead to unexpected behavior
336336

337337
```js
338338
ignore({

0 commit comments

Comments
 (0)