mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 19:21:46 +00:00
Search all fields by default, gray out nodes if no match
This commit is contained in:
@@ -64,3 +64,8 @@ function makeFormatMetric(renderFn) {
|
||||
export const formatMetric = makeFormatMetric(renderHtml);
|
||||
export const formatMetricSvg = makeFormatMetric(renderSvg);
|
||||
export const formatDate = d3.time.format.iso;
|
||||
|
||||
const CLEAN_LABEL_REGEX = /\W/g;
|
||||
export function slugify(label) {
|
||||
return label.replace(CLEAN_LABEL_REGEX, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user