mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
Slugify result in lower case
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user