mirror of https://github.com/hashicorp/consul
10 lines
246 B
JavaScript
10 lines
246 B
JavaScript
|
import rightTrim from 'consul-ui/utils/right-trim';
|
||
|
export default {
|
||
|
Key: (item, value) =>
|
||
|
rightTrim(item.Key.toLowerCase())
|
||
|
.split('/')
|
||
|
.filter(item => Boolean(item))
|
||
|
.pop()
|
||
|
.indexOf(value.toLowerCase()) !== -1,
|
||
|
};
|