From f17b02b1fe57d9fc0832362c40df1099e7a83540 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Tue, 23 Oct 2018 13:31:38 +0200 Subject: [PATCH] Slugify result in lower case --- src/components/modals/ExportModal.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/modals/ExportModal.jsx b/src/components/modals/ExportModal.jsx index c45e0742..27ee0699 100644 --- a/src/components/modals/ExportModal.jsx +++ b/src/components/modals/ExportModal.jsx @@ -42,7 +42,10 @@ class ExportModal extends React.Component { const blob = new Blob([tokenStyle], {type: "application/json;charset=utf-8"}); let exportName; if(this.props.mapStyle.name) { - exportName = Slugify(this.props.mapStyle.name, '_') + exportName = Slugify(this.props.mapStyle.name, { + replacement: '_', + lower: true + }) } else { exportName = this.props.mapStyle.id }