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

9 lines
194 B

import rightTrim from 'consul-ui/utils/right-trim';
export default {
Key: item =>
rightTrim(item.Key.toLowerCase())
.split('/')
.filter(item => Boolean(item))
.pop(),
};