Add a search section to the help-popup

This commit is contained in:
Simon Howe
2016-10-12 17:14:07 +02:00
parent 7d88279758
commit cc4c71faf0
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();
}