Add a new search section to the help popover

This commit is contained in:
Simon Howe
2016-10-12 17:35:26 +02:00
parent 1d3ae9576d
commit db5baabeee
6 changed files with 331 additions and 55 deletions

View File

@@ -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();
}