Document Updated for filter method
This commit is contained in:
parent
bc0f8e7762
commit
dc24005597
|
@ -112,9 +112,9 @@ map to:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
initial: 'foo',
|
subInitial: 'foo',
|
||||||
any: ['bar', 'cat'],
|
subAny: ['bar', 'cat'],
|
||||||
final: 'dog'
|
subFinal: 'dog'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -124,9 +124,9 @@ key matching `attribute` and the "regex" matches the value
|
||||||
```js
|
```js
|
||||||
const f = new SubstringFilter({
|
const f = new SubstringFilter({
|
||||||
attribute: 'cn',
|
attribute: 'cn',
|
||||||
initial: 'foo',
|
subInitial: 'foo',
|
||||||
any: ['bar'],
|
subAny: ['bar'],
|
||||||
final: 'baz'
|
subFinal: 'baz'
|
||||||
});
|
});
|
||||||
|
|
||||||
f.matches({cn: 'foobigbardogbaz'}); => true
|
f.matches({cn: 'foobigbardogbaz'}); => true
|
||||||
|
|
Loading…
Reference in New Issue