Metric matching support for search

Examples:

* cpu > 2 // means percent
* memory > 4.5MB
This commit is contained in:
David Kaltschmidt
2016-05-04 17:21:46 +02:00
parent d1609658bf
commit 3e26ed7083
3 changed files with 132 additions and 39 deletions

View File

@@ -67,5 +67,5 @@ export const formatDate = d3.time.format.iso;
const CLEAN_LABEL_REGEX = /\W/g;
export function slugify(label) {
return label.replace(CLEAN_LABEL_REGEX, '');
return label.replace(CLEAN_LABEL_REGEX, '').toLowerCase();
}