Document Updated for Filter

This commit is contained in:
devbysn 2023-06-28 17:27:16 +05:30
parent 71336fca3d
commit 6d3eb59218
1 changed files with 12 additions and 12 deletions

View File

@ -35,15 +35,15 @@ ldapjs object(s). If the filter is "complex", it will be a "tree" of objects.
For example:
```js
const parseFilter = require("ldapjs").parseFilter;
const parseFilter = require('ldapjs').parseFilter;
const f = parseFilter("(objectclass=*)");
const f = parseFilter('(objectclass=*)');
```
Is a "simple" filter, and would just return a `PresenceFilter` object. However,
```js
const f = parseFilter("(&(employeeType=manager)(l=Seattle))");
const f = parseFilter('(&(employeeType=manager)(l=Seattle))');
```
Would return an `AndFilter`, which would have a `filters` array of two
@ -242,7 +242,7 @@ equality filters):
(|(cn=foo)(sn=bar))
```
The `matches()` method will return true IFF the passed in object matches _any_
The `matches()` method will return true IFF the passed in object matches *any*
of the filters in the `filters` array.
```js