You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/search/predicates/kv.js

10 lines
246 B

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,
};