consul/ui/packages/consul-ui/app/search/predicates/kv.js

9 lines
194 B
JavaScript

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