mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-21 18:08:15 +00:00
Add a search section to the help-popup
This commit is contained in:
@@ -65,7 +65,7 @@ export const formatMetric = makeFormatMetric(renderHtml);
|
||||
export const formatMetricSvg = makeFormatMetric(renderSvg);
|
||||
export const formatDate = d3.time.format.iso;
|
||||
|
||||
const CLEAN_LABEL_REGEX = /\W/g;
|
||||
const CLEAN_LABEL_REGEX = /[^A-Za-z]/g;
|
||||
export function slugify(label) {
|
||||
return label.replace(CLEAN_LABEL_REGEX, '').toLowerCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user